2017 © Pedro PelĂĄez
 

library twitter-client

A independent Twitter client library to retrieve Twits.

image

desarrolla2/twitter-client

A independent Twitter client library to retrieve Twits.

  • Wednesday, August 7, 2013
  • by desarrolla2
  • Repository
  • 1 Watchers
  • 1 Stars
  • 59 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

TwitterClient

Build Status, (*1)

A independent Twitter Client library. This library depends from RSSClient, (*2)

Installation

With Composer

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

``` json "require": { // ... "desarrolla2/twitter-client": "dev-master" }, (*4)


### 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 <?php use Desarrolla2\TwitterClient\TwitterClient; $client = new TwitterClient(); $client->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)., (*5)

``` php <?php, (*6)

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);
$client->setScreenName('desarrolla2');

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

```, (*7)

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

Contact

You can contact with me on twitter., (*9)

The Versions

07/08 2013

dev-master

9999999-dev

A independent Twitter client library to retrieve Twits.

  Sources   Download

MIT

The Requires

 

client twitter

07/08 2013

v2.0.0

2.0.0.0

A independent Twitter client library to retrieve Twits.

  Sources   Download

MIT

The Requires

 

client twitter

13/12 2012

v1.0.0

1.0.0.0

A independent Twitter client library to retrieve Twits.

  Sources   Download

MIT

The Requires

 

client twitter