<commit_before>## Simple PHP Wrapper for Twitter API v1.1

Twitter-API-PHP is a simple PHP wrapper library for Twitter API v1.1 calls. It has been designed for making the Twitter API as simple to use as possible for developers (on the server or on the client).

It supports:

- [Application-Only Authentication](https://dev.twitter.com/oauth/application-only) (Oauth 2.0).
- [Single-User OAuth](https://dev.twitter.com/oauth/overview/single-user) (Oauth 1.0a).
- [3-legged Authorization](https://dev.twitter.com/oauth/3-legged) (Oauth 1.0a).


### Installation

{To be filled up later!}

### Dependencies

```
"php": ">=5.4.0",
"guzzlehttp/guzzle": "~5.0",
"guzzlehttp/oauth-subscriber": "0.1.*@dev"
```

### Basic Usage

Some examples are located in the `examples/` directory:

- appExample.php: Example of Application-Only Authentication
- userExample.php: Example of 3-legged Authorization

Detailed explanation can be found below:

#### To use Twitter as an application: 

- Create an instance of `Twitter\Config\AppCredentials` class with appropriate API keys.
 
```php
$credentials = new AppCredentials($consumerKey, $consumerSecret);
```
<commit_msg>Added installation instructions to ReadMe.<commit_after>## Simple PHP Wrapper for Twitter API v1.1

Twitter-API-PHP is a simple PHP wrapper library for Twitter API v1.1 calls. It has been designed for making the Twitter API as simple to use as possible for developers (on the server or on the client).

It supports:

- [Application-Only Authentication](https://dev.twitter.com/oauth/application-only) (Oauth 2.0).
- [Single-User OAuth](https://dev.twitter.com/oauth/overview/single-user) (Oauth 1.0a).
- [3-legged Authorization](https://dev.twitter.com/oauth/3-legged) (Oauth 1.0a).


### Installation

To install via [Composer](https://getcomposer.org), run the following on your CLI:

```
composer require abhishekbhardwaj/twitter-api-php
```

### Dependencies

```
"php": ">=5.4.0",
"guzzlehttp/guzzle": "~5.0",
"guzzlehttp/oauth-subscriber": "0.1.*@dev"
```

### Basic Usage

Some examples are located in the `examples/` directory:

- appExample.php: Example of Application-Only Authentication
- userExample.php: Example of 3-legged Authorization

Detailed explanation can be found below:

#### To use Twitter as an application: 

- Create an instance of `Twitter\Config\AppCredentials` class with appropriate API keys.
 
```php
$credentials = new AppCredentials($consumerKey, $consumerSecret);
```

{'fraction_non_alphanumeric': 0.1329268292682927, 'fraction_numerical': 0.016260162601626018, 'mean_word_length': 4.605922551252847, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1934442', 'n_tokens_mistral': 805, 'n_tokens_neox': 752, 'n_words': 248}