Popularity
1.7
Growing
Activity
0.0
Stable
24
10
7

Description

The Wid'op Twitter REST library is a modern PHP 5.3+ API allowing you to easily interact with Twitter 1.1. In order to sign your request with the OAuth protocol, the library internally uses the widop/twitter-oauth.

Code Quality Rank: L5
Programming language: PHP
License: MIT License
Tags: API     Third Party APIs     REST     Twitter    

Twitter REST alternatives and similar libraries

Based on the "Third Party APIs" category.
Alternatively, view Twitter REST alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Twitter REST or a related project?

Add another 'Third Party APIs' Library

README

README

Build Status

The Wid'op Twitter REST library is a modern PHP 5.3+ API allowing you to easily interact with Twitter 1.1. In order to sign your request with the OAuth protocol, the library internally uses the widop/twitter-oauth.

use Widop\HttpAdapter\CurlHttpAdapter;
use Widop\Twitter\OAuth;
use Widop\Twitter\Rest\Statuses\StatusesUpdateRequest;
use Widop\Twitter\Rest\Twitter;

// First, instantiate your OAuth client.
$oauth = new OAuth\OAuth(
    new CurlHttpAdapter(),
    new OAuth\OAuthConsumer('consumer_key', 'consumer_secret'),
    new OAuth\Signature\OAuthHmacSha1Signature()
);

// Second, instantiate your OAuth access token.
$token = new OAuth\OAuthToken('oauth_key', 'oauth_secret');

// Third, instantiate your Twitter client.
$twitter = new Twitter($oauth, $token);

// Then, send a request to the Twitter API!
$request = new StatusesUpdateRequest('Yeah, I\'m currently updating my status!')
$tweet = $twitter->send($request)->getData();

Documentation

  1. [Installation](doc/installation.md)
  2. [Twitter](doc/twitter.md)

Testing

The library is fully unit tested by PHPUnit with a code coverage close to 100%. To execute the test suite, check the travis [configuration](.travis.yml).

Contribute

We love contributors! The library is open source, if you'd like to contribute, feel free to propose a PR!

License

The Wid'op Twitter REST library is under the MIT license. For the full copyright and license information, please read the [LICENSE](LICENSE) file that was distributed with this source code.


*Note that all licence references and agreements mentioned in the Twitter REST README section above are relevant to that project's source code only.