PHP code example of bissolli / twitter-php-scraper

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

    

bissolli / twitter-php-scraper example snippets


$twitter = new \Bissolli\TwitterScraper\Twitter('official_php');
var_dump($twitter->getProfile());

$twitter = (new \Bissolli\TwitterScraper\Twitter('official_php'))->loadTweets();
var_dump($twitter->getProfile());
var_dump($twitter->getTweets());