PHP code example of awea / twitter-feed
1. Go to this page and download the library: Download awea/twitter-feed 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/ */
awea / twitter-feed example snippets
use \Awea\TwitterFeed\TwitterFeed;
// key, secret and tokens accessible on https://apps.twitter.com/
$twitter_feed = new TwitterFeed([
'screen_name' => 'user name',
'consumer_key' => 'consumer_key',
'consumer_secret' => 'consumer_secret',
'access_token' => 'access_token',
'access_token_secret' => 'access_token_secret'
]);
$tweets = $twitter_feed->getUserTL();