PHP code example of itigoppo / twitter-api

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

    

itigoppo / twitter-api example snippets



$consumerKey = 'Your API key';
$consumerSecret = 'Your API secret key';
$token = 'Your Access token';
$tokenSecret = 'Your Access token secret';

$twitter = new Twitter(new Connector($consumerKey, $consumerSecret, $token, $tokenSecret));