PHP code example of rafael.paulino / twitter

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

    

rafael.paulino / twitter example snippets



Twitter\CountFollowers;

$twitter = new CountFollowers('Your Account Name');
$total = $twitter->getTotal();
var_dump($total);
echo $total['total'];