Registry / http-client / abraham-twitteroauth

abraham-twitteroauth

JSON →
library8.1.1phppackagistunverified

The most popular PHP library for use with the Twitter OAuth REST API.

composer require abraham/twitteroauth
INSTALL
IMPORT
SIG · ABRAHAM-TWITTEROAU
A
abraham-twitteroauth
http-clientphpv8.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TwitterOAuth
use Abraham\TwitterOAuth\TwitterOAuth;

Initialize a TwitterOAuth connection and fetch the home timeline.

use Abraham\TwitterOAuth\TwitterOAuth; $connection = new TwitterOAuth($consumerKey, $consumerSecret, $accessToken, $accessTokenSecret); $tweets = $connection->get('statuses/home_timeline', ['count' => 10]);
Debug
Known issues
breakingRequires PHP 8.1+ and cURL extension.
fix
Ensure your environment meets these requirements.
affects: >=8.0.0
Upgrade
Version history
8.1.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
46 hits · last 30 days
node
38
Resources
abraham-twitteroauth — pip install abraham-twitteroauth · libregistry