2017 © Pedro Peláez
 

library twitter-php-api-client

PHP Client Library for https://developer.twitter.com API

image

stavarengo/twitter-php-api-client

PHP Client Library for https://developer.twitter.com API

  • Tuesday, June 5, 2018
  • by Stavarengo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 98 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 69 % Grown

The README.md

twitter-php-api-client

PHP Client Library for https://developer.twitter.com API, (*1)

If you are interested in a PHP API for Twitter, that's your library :), (*2)

About It

  • Depends only on PSRs.
  • Optionally use cache to use less requests and speed up response.
  • You can use it with any application, either if it uses or not factories from PSR-11.
  • It should be very easy to use, since I tried to keep all the source code well documented.

Installation

Install via composer., (*3)

composer require stavarengo/twitter-php-api-client:^0.0

Basic Usage - More complete documentation yet to come

  • Use it directly (without a factory)., (*4)

    $client = new \Sta\TwitterPhpApiClient\TwitterClient(null);
    
    $authResponse = $client->postOauth2Token($consumerKey, $consumerSecret);
    $response = $client->getUsersShow('@username', false, $authResponse->getEntityBearerToken());
    
    var_dump($response->hasError() ? $response->getEntityError() : $response->getEntityUser());
    
  • Use our default factory (PSR-11)., (*5)

    $client = $container->get(\Sta\TwitterPhpApiClient\Client::class)
    
    $authResponse = $client->postOauth2Token($consumerKey, $consumerSecret);
    $response = $client->getUsersShow('@username', false, $authResponse->getEntityBearerToken());
    
    var_dump($response->hasError() ? $response->getEntityError() : $response->getEntityUser());
    

The Versions

05/06 2018

dev-master

9999999-dev

PHP Client Library for https://developer.twitter.com API

  Sources   Download

MIT

The Requires

 

05/06 2018

v0.0.5

0.0.5.0

PHP Client Library for https://developer.twitter.com API

  Sources   Download

MIT

The Requires

 

21/03 2018

v0.0.4

0.0.4.0

PHP Client Library for https://developer.twitter.com API

  Sources   Download

MIT

The Requires

 

21/03 2018

v0.0.3

0.0.3.0

PHP Client Library for https://developer.twitter.com API

  Sources   Download

MIT

The Requires

 

13/03 2018

v0.0.2

0.0.2.0

PHP Client Library for https://developer.twitter.com API

  Sources   Download

MIT

The Requires

 

12/03 2018

v0.0.1

0.0.1.0

PHP Client Library for https://developer.twitter.com API

  Sources   Download

MIT

The Requires

 

03/03 2018

v0.0.0

0.0.0.0

PHP Client Library for https://developer.twitter.com API

  Sources   Download

MIT

The Requires