2017 © Pedro Peláez
 

library twitterapi

Implementation of the Twitter API for PHP.

image

maalls/twitterapi

Implementation of the Twitter API for PHP.

  • Thursday, March 1, 2018
  • by maalls
  • Repository
  • 1 Watchers
  • 0 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

TwitterApi

Simple Twitter API using OAuth 1.1, in PHP., (*1)

Installation using Composer

Add the following line into the require section of your composer.json:, (*2)

  "require": {
    "maalls/TwitterApi": "~1.0"
  }

Then run the following command line:, (*3)

$composer update

Examples

use Maalls\TwitterApi;

// A get request.
$api = new TwitterApi($access_token, $access_token_secret, $consumer_key, $consumer_secret);
$json = $api->get('search/tweets', array('q' => "github"));

// A post request.
$json = $api->>post("statuses/update", array("status" => "I love coding."));

// iterate() works for actions that returns an array of tweets: it collects all the tweets available by making several HTTP request and adjusting max_id parameters.
// see https://dev.twitter.com/rest/public/timelines
$json = $api->iterate('twitter/search', array('q' => 'githun'));

The class also collect the HTTP response header into an array, this is useful because it includes rate limit information:, (*4)

var_dump($api->header);

array(17) {
  [...]
  'x-rate-limit-limit' =>
  string(3) "180"
  'x-rate-limit-remaining' =>
  string(3) "179"
  'x-rate-limit-reset' =>
  string(10) "1416472112"
  [...]
}

The Versions

01/03 2018

dev-master

9999999-dev https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT MIT License

The Requires

 

api php twitter

01/03 2018

v1.2.5

1.2.5.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT

The Requires

 

api php twitter

02/12 2015

v1.2.4

1.2.4.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter

15/01 2015

v1.2.35

1.2.35.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter

14/01 2015

v1.2.34

1.2.34.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter

14/01 2015

v1.2.33

1.2.33.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter

14/01 2015

v1.2.32

1.2.32.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter

21/11 2014

v1.2.31

1.2.31.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter

21/11 2014

v1.2.3

1.2.3.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter

21/11 2014

v1.2.2

1.2.2.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter

20/11 2014

v1.2.1

1.2.1.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter

17/11 2014

v1.1

1.1.0.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter

17/11 2014

v1.2

1.2.0.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter

30/10 2014

v1.0

1.0.0.0 https://github.com/maalls/twitterapi

Implementation of the Twitter API for PHP.

  Sources   Download

MIT License

The Requires

 

api php twitter