PHP code example of atomicsmash / twitter-feed-wordpress

1. Go to this page and download the library: Download atomicsmash/twitter-feed-wordpress 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/ */

    

atomicsmash / twitter-feed-wordpress example snippets


define('TWITTER_CONSUMER_KEY','');
define('TWITTER_CONSUMER_SECRET','');
define('TWITTER_OAUTH_TOKEN','');
define('TWITTER_OAUTH_TOKEN_SECRET','');

define('TWITTER_USERNAME','');

if( isset( $twitterAPI ) ){

	$tweets = $twitterAPI->get([
		'results_per_page'	=> 4, 		// int
		'order'			=> 'asc',	// 'asc|desc'
		'tweet_type'		=> 'all'	// 'all|tweet|retweet|reply'
	]);

}