bagusrin / twitter
API Twitter
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bagusrin/twitter
Requires
- php: >=7.1
- abraham/twitteroauth: ^0.7
Requires (Dev)
- phpunit/phpunit: ^5.7|^6.0
- symfony/http-foundation: ^3.0|^4.0
This package is auto-updated.
Last update: 2025-09-27 17:28:03 UTC
README
This is simple PHP Library to use Twitter API.
Cara Install
Library ini dapat diinstall dengan Composer.
composer require bagusrin/twitter:1.*
Jika Anda masih belum memahami bagaimana cara menggunakan Composer, silahkan baca Getting Started with Composer.
Get consumer access key and token from Twitter
Register your application at http://apps.twitter.com/app
Usage
use Abraham\TwitterOAuth\TwitterOAuth; use Bagusrin\Twitter\Client; $twitterOAuth = new TwitterOAuth($consumerKey, $consumerSecret); $client = new Client($twitterOAuth); // Retrieve the last 50 items in the user's timeline $tweets = $client->getTimeline(50);