2017 © Pedro Peláez
 

library twitteroauth

PHP library to communicate with Twitter OAuth API version 1.1

image

ricardoper/twitteroauth

PHP library to communicate with Twitter OAuth API version 1.1

  • Monday, September 12, 2016
  • by ricardoper
  • Repository
  • 16 Watchers
  • 92 Stars
  • 97,301 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 35 Forks
  • 0 Open issues
  • 17 Versions
  • 4 % Grown

The README.md

TwitterOAuth

PHP library to communicate with Twitter OAuth API version 1.1., (*1)

Latest Stable Version Total Downloads License, (*2)

OAuth Methods Supported

NOTE: Call media/upload supported, call account/update_profile_background_image not supported.br/ br/, (*3)

Requirements

  • PHP Version >= 5.3
  • PHP cURL extension
  • PHP JSON extension
  • PHP OpenSSL extension
  • Lib cURL

NOTE: No external dependencies (Guzzle, Symfony Components. etc...)br/ br/, (*4)

Installation

The recommended way to install TwitterOAuth is through Composer:, (*5)

{
    "require": {
        "ricardoper/twitteroauth": "2.*"
    }
}

NOTE: If you prefer v1 (One Single File), you can get it in v1 branch.br/ br/, (*6)

cURL Options

After some complaints, I decided to give access to the default options of cURL. This changes solved every connections issues caused by cURL library., (*7)

Please check the examples: - "SingleUser_With_cURL_Options.php" - "ApplicationOnly_With_cURL_Options.php", (*8)

Examples

Please, see the examples source code from "Examples" folder.br/ br/, (*9)

Benchmarks

Very simple benchmarks from "Examples" source code., (*10)

Memory Usage

Less than 524Kb except for image uploading. In this case memory depends on the image size., (*11)

Stress Bench

Stress bench done without connection request time. Single run bench done with and without connection request time. Connection request time may vary depending on the internet connection., (*12)

Machine:br/ Intel Core 2 Quad Q6600 2.40GHzbr/ 4Gb RAMbr/ 7200 rpm HDD, (*13)

Versions:br/ nginx 1.6.2br/ PHP v5.5.9br/ Zend OPcache enabledbr/ SIEGE 3.0.5, (*14)

Bench Details:br/ 20 concurrent connectionsbr/ 1000 requests per threadbr/ No delays between requestsbr/ Command: siege -c20 -b -r1000 "URL"br/ br/, (*15)

| Test Name | Execution Time | Requests per Second | | --- | :----: | :---: | | v1 ApplicationOnly | 11.44 | 1748.25 | | v1 SingleUser | 10.05 | 1990.05 | | v2 ApplicationOnly | 16.62 | 1203.37 | | v2 SingleUser | 15.61 | 1281.23 | | v2 ApplicationOnly (Without Composer) | 15.78 | 1267.43 | | v2 SingleUser (Without Composer) | 15.60 | 1282.05 | br/, (*16)

| Test Name (Single Run) | Without Req. Time | With Req. Time | | --- | :----: | :---: | | v1 ApplicationOnly | 0.003817 | 2.056922 | | v1 SingleUser | 0.003674 | 1.115811 | | v2 ApplicationOnly | 0.005201 | 1.553395 | | v2 SingleUser | 0.005202 | 0.847195 | | v2 ApplicationOnly (Without Composer) | 0.004513 | 1.547005 | | v2 SingleUser (Without Composer) | 0.004403 | 0.838964 | br/, (*17)

v1 App Onlybr/ Transactions: 20000 hitsbr/ Availability: 100.00 %br/ Elapsed time: 11.44 secsbr/ Data transferred: 0.46 MBbr/ Response time:0.01 secsbr/ Transaction rate: 1748.25 trans/secbr/ Throughput:0.04 MB/secbr/ Concurrency: 19.91br/ Successful transactions: 20000br/ Failed transactions: 0br/ Longest transaction: 0.03br/ Shortest transaction: 0.00, (*18)

v1 Single Userbr/ Transactions: 20000 hitsbr/ Availability: 100.00 %br/ Elapsed time: 10.05 secsbr/ Data transferred: 0.46 MBbr/ Response time:0.01 secsbr/ Transaction rate: 1990.05 trans/secbr/ Throughput:0.05 MB/secbr/ Concurrency: 19.86br/ Successful transactions: 20000br/ Failed transactions: 0br/ Longest transaction: 0.05br/ Shortest transaction: 0.00, (*19)

v2 App onlybr/ Transactions: 20000 hitsbr/ Availability: 100.00 %br/ Elapsed time: 16.62 secsbr/ Data transferred: 0.46 MBbr/ Response time:0.02 secsbr/ Transaction rate: 1203.37 trans/secbr/ Throughput:0.03 MB/secbr/ Concurrency: 19.91br/ Successful transactions: 20000br/ Failed transactions: 0br/ Longest transaction: 0.06br/ Shortest transaction: 0.00, (*20)

v2 Single Userbr/ Transactions: 20000 hitsbr/ Availability: 100.00 %br/ Elapsed time: 15.61 secsbr/ Data transferred: 0.46 MBbr/ Response time:0.02 secsbr/ Transaction rate: 1281.23 trans/secbr/ Throughput:0.03 MB/secbr/ Concurrency: 19.91br/ Successful transactions: 20000br/ Failed transactions: 0br/ Longest transaction: 0.04br/ Shortest transaction: 0.01, (*21)

v2 App Only (Without Composer)br/ Transactions: 20000 hitsbr/ Availability: 100.00 %br/ Elapsed time: 15.78 secsbr/ Data transferred: 0.46 MBbr/ Response time:0.02 secsbr/ Transaction rate: 1267.43 trans/secbr/ Throughput:0.03 MB/secbr/ Concurrency: 19.91br/ Successful transactions: 20000br/ Failed transactions: 0br/ Longest transaction: 0.04br/ Shortest transaction: 0.00, (*22)

v2 Single User (Without Composer)br/ Transactions: 20000 hitsbr/ Availability: 100.00 %br/ Elapsed time: 15.60 secsbr/ Data transferred: 0.46 MBbr/ Response time:0.02 secsbr/ Transaction rate: 1282.05 trans/secbr/ Throughput:0.03 MB/secbr/ Concurrency: 19.90br/ Successful transactions: 20000br/ Failed transactions: 0br/ Longest transaction: 0.06br/ Shortest transaction: 0.00br/ br/, (*23)

License

Released under the MIT License., (*24)

The Versions

12/09 2016

dev-master

9999999-dev https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *

 

php oauth twitter api v1.1

12/09 2016

v3.x-dev

3.9999999.9999999.9999999-dev https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *
  • php >=5.4

 

php oauth twitter api v1.1

12/09 2016

v1.x-dev

1.9999999.9999999.9999999-dev https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

php oauth twitter api v1.1

12/09 2016

v2.x-dev

2.9999999.9999999.9999999-dev https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *

 

php oauth twitter api v1.1

27/05 2016

v2.1.6

2.1.6.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *

 

php oauth twitter api v1.1

30/03 2016

v2.1.5

2.1.5.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *

 

php oauth twitter api v1.1

04/03 2016

v2.1.4

2.1.4.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *

 

php oauth twitter api v1.1

06/07 2015

v2.1.3

2.1.3.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *

 

php oauth twitter api v1.1

14/02 2015

v2.1.2

2.1.2.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *

 

php oauth twitter api v1.1

13/01 2015

v2.1.1

2.1.1.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *

 

php oauth twitter api v1.1

12/12 2014

v2.1.0

2.1.0.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *

 

php oauth twitter api v1.1

10/12 2014

v2.0.1

2.0.1.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *

 

php oauth twitter api v1.1

09/12 2014

v2.0.0

2.0.0.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *
  • ext-json *
  • lib-curl *
  • lib-openssl *

 

php oauth twitter api v1.1

09/09 2014

v1.1.1

1.1.1.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

php oauth twitter api v1.1

07/09 2014

v1.1.0

1.1.0.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

php oauth twitter api v1.1

19/08 2014

v1.0.1

1.0.1.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

php oauth twitter api v1.1

01/09 2013

v1.0.0

1.0.0.0 https://github.com/ricardoper

PHP library to communicate with Twitter OAuth API version 1.1

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

php oauth twitter api v1.1