Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/desarrolla2/twitterclient


https://github.com/desarrolla2/twitterclient

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# TwitterClient

[![Build Status](https://secure.travis-ci.org/desarrolla2/TwitterClient.png)](http://travis-ci.org/desarrolla2/TwitterClient)

A independent Twitter Client library. This library depends from RSSClient

## Installation

### With Composer

It is best installed it through [packagist](http://packagist.org/packages/desarrolla2/twitter-client)
by including
`desarrolla2/twitter-client` in your project composer.json require:

``` json
"require": {
// ...
"desarrolla2/twitter-client": "dev-master"
}
```

### Without Composer

You can also download it from [Github] (https://github.com/desarrolla2/TwitterClient),
but no autoloader is provided so you'll need to register it with your own PSR-0
compatible autoloader.

## Usage

### Without Cache

This example does not use any cache, so it probably will be too slow to be used on
a website, you should implement your system cache, or use the cache system described below

``` php
setScreenName('desarrolla2');

$twits = $client->fetch(10);

```

### With Cache

This example uses the cache implemented by Seller desarrolla2/cache you must
select the adapter depending on your needs, you can find all the info in the
repository [Github] (https://github.com/desarrolla2/Cache).

``` php
setScreenName('desarrolla2');

$twits = $client->fetch(10);

```

You can see how to configure desarrolla2/cache in its [README] (https://github.com/desarrolla2/Cache)

## Contact

You can contact with me on [twitter](https://twitter.com/desarrolla2).