2017 © Pedro Peláez
 

library twitter-rest

Twitter REST API for PHP 5.3+

image

widop/twitter-rest

Twitter REST API for PHP 5.3+

  • Friday, February 7, 2014
  • by Widop
  • Repository
  • 9 Watchers
  • 26 Stars
  • 1,085 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

README

Build Status, (*1)

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., (*2)

``` php use Widop\HttpAdapter\CurlHttpAdapter; use Widop\Twitter\OAuth; use Widop\Twitter\Rest\Statuses\StatusesUpdateRequest; use Widop\Twitter\Rest\Twitter;, (*3)

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

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

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

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

Documentation

  1. Installation
  2. Twitter

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., (*8)

Contribute

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

License

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

The Versions

07/02 2014

dev-master

9999999-dev

Twitter REST API for PHP 5.3+

  Sources   Download

MIT

The Requires

 

The Development Requires

by Geoffrey BRIER
by Eric GELOEN
by Avatar Widop

api rest twitter