NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1777 most downloaded on Packagist
The most popular PHP library for use with the Twitter OAuth REST API.
Latest stable
9.0.0
Last release 21 days ago
01 Nov 2026
Release timing varies
gaps range from 2 weeks to 1.8 years
Most releases are documented
notes for 32 of 50 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
51 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
drop API version 1.1 by @abraham in https://github.com/abraham/twitteroauth/pull/1390
Full Changelog: https://github.com/abraham/twitteroauth/compare/8.4.0...9.0.0
add actions lock by @abraham in https://github.com/abraham/twitteroauth/pull/1383
Full Changelog: https://github.com/abraham/twitteroauth/compare/8.3.0...8.4.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
## What's Changed * Bump dependencies Full Changelog: https://github.com/abraham/twitteroauth/compare/8.2.0...8.3.0
Full Changelog: https://github.com/abraham/twitteroauth/compare/8.2.0...8.3.0
Consistent file validation between chunked/unchunked media upload methods
Remove missed curl_close
curl_closeSupport PHP 8.5
Replace VCR with dependency injection
- Update dependencies - Improve typing - Stop calling curl_close
Change the third argument of callers from a boolean to an array
Change the third argument of callers from a boolean to an array
+ $connection->post("tweets", ["text" => $text], ['jsonPayload' => true]);
- $connection->post("tweets", ["text" => $text], true);
$connection->upload(
'media/upload',
['media' => $file_path, 'media_type' => 'video/mp4'],
+ ['chunkedUpload' => true],
- true
);
Expand PHP 8 support
Default v2 to JSON payload
Default v2 to JSON payload
For v1 APIs you can switch back using:
Default to Twitter API v2.
For v1 APIs you can switch back using:
$connection->setApiVersion('1.1');
Nothing published for this version
Resolve parameters to random_int
random_intNothing published for this version
Nothing published for this version
- Add support for php 8.1 - Remove support for php 7.3
Switch apiUrl to protected. Overriding apiUrl is not officially supported.
apiUrl to protected. Overriding apiUrl is not officially supported.`php $connection = new TwitterOAuth(...); $connection->setApiVersion('2'); $response = $connection->get('users', ['ids' => 12]); `
$connection = new TwitterOAuth(...);
$connection->setApiVersion('2');
$response = $connection->get('users', ['ids' => 12]);
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
1.x is the last version to support PHP versions < 7.2. 1.x will get critical security and bug fixes while feature development will go toward a future
1.x is the last version to support PHP versions < 7.2. 1.x will get critical security and bug fixes while feature development will go toward a future 2.x release.
- Coerce boolean to 'boolean'
boolean to 'boolean'Nothing published for this version
Support JSON data for POST requests
Use setChunkSize to set the chunk size for file uploads
setChunkSize to set the chunk size for file uploadsNothing published for this version
Move check to see if Phar class is defined to discrete method
Nothing published for this version
- Update composer dependencies - Drop support for PHP 5.5
Use system TLS certificates when in PHAR compression format.
Use system TLS certificates when in PHAR compression format.
Nothing published for this version
Nothing published for this version
- Adds setGzipEncoding method
setGzipEncoding methodNothing published for this version
Nothing published for this version
PHP 5.4 is no longer supported.
PHP 5.4 is no longer supported.
Remove misused CURLOPT_CAPATH parameter.
Remove misused CURLOPT_CAPATH parameter.
Updated TLS root certificates.
Updated TLS root certificates.
Always specify Accepts: application/json and minor bug fixes.
Always specify Accepts: application/json and minor bug fixes.
Better support for proxy responses
lastHttpCode => getLastHttpCode
lastHttpCode => getLastHttpCodelastResponse => getLastBodylastXHeaders => getLastXHeaderslastResponse => getLastBodyNothing published for this version
Autoloader for non Composer installs
setOauthToken methodsetTimeouts/oauth2/* methodsSimplified ->oauth and ->url methods
->oauth and ->url methodsNothing published for this version
Nothing published for this version
One column per quarter.