Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/desarrolla2/twitterclient
https://github.com/desarrolla2/twitterclient
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/desarrolla2/twitterclient
- Owner: desarrolla2
- License: mit
- Created: 2012-10-09T20:04:26.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-08T11:48:24.000Z (over 11 years ago)
- Last Synced: 2023-08-21T09:24:50.531Z (over 1 year ago)
- Language: PHP
- Size: 156 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).