PHP code example of carboncreative / php-twitter-rest-sdk
1. Go to this page and download the library: Download carboncreative/php-twitter-rest-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
carboncreative / php-twitter-rest-sdk example snippets
$twitter = \Tmoitie\Twitter\TwitterClient::factory(array(
'consumer_key' => '',
'consumer_secret' => '',
'token' => '',
'token_secret' => '',
));
$twitter->getUserTweets(array('screen_name' => 'tmoitie')); //array of tweets