Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #215 from TomasVotruba/patch-2
Browse files Browse the repository at this point in the history
Readme: simplify composer install
  • Loading branch information
J7mbo authored Nov 8, 2016
2 parents a1d9496 + f40b1e8 commit 47707f8
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,21 @@ You really can't get much simpler than that. The above bullet points are an exam
Installation
------------

**Normally:** If you *don't* use composer, don't worry - just include TwitterAPIExchange.php in your application.
**Normally:** If you *don't* use composer, don't worry - just include TwitterAPIExchange.php in your application.

**Via Composer:** If you realise it's 2015 now and you *do* use composer, here's what you add to your composer.json file to have TwitterAPIExchange.php automatically imported into your vendors folder:
```php
require_once('TwitterAPIExchange.php');
```

{
"require": {
"j7mbo/twitter-api-php": "dev-master"
}
}
**Via Composer:**

Of course, you'll then need to run `php composer.phar update`.
```bash
composer require j7mbo/twitter-api-php
```

How To Use
----------

#### Include the class file ####

```php
require_once('TwitterAPIExchange.php');
```

#### Set access tokens ####

```php
Expand Down

0 comments on commit 47707f8

Please sign in to comment.