This package is abandoned and no longer maintained. No replacement package was suggested.

A independent Twitter client library to retrieve Twits.

v2.0.0 2013-08-07 21:02 UTC


Build Status

A independent Twitter Client library. This library depends from RSSClient


With Composer

It is best installed it through packagist by including desarrolla2/twitter-client in your project composer.json require:

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

Without Composer

You can also download it from [Github] (, but no autoloader is provided so you'll need to register it with your own PSR-0 compatible autoloader.


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


    use Desarrolla2\TwitterClient\TwitterClient;

    $client = new TwitterClient();

    $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] (


    use Desarrolla2\TwitterClient\TwitterClient;
    use Desarrolla2\RSSClient\RSSCacheClient;
    use Desarrolla2\Cache\Cache;
    use Desarrolla2\Cache\Adapter\NotCache;

    // It is important that you select and configure your cache adapter
    $rssCacheClient = new RSSCacheClient(new Cache(new File('/tmp')));

    $client = new TwitterClient(rssCacheClient);

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

You can see how to configure desarrolla2/cache in its [README] (


You can contact with me on twitter.