PHP code example of pira / instagram

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

    

pira / instagram example snippets


public static function main()
{
    $settings = new Settings;
    $settings->getConnection()->setMaxMediaSocketCount(1000);
    $settings->getPeer()->setFullFetch(false)->setCacheAllPeersOnStartup(false);

    self::startAndLoop('bot.madeline', $settings);
}
sh
   php bot.php
   
sh
   php bot.php
   
sh
   wget https://raw.githubusercontent.com/code3-dev/Instagram-DL/master/bot.php
   
sh
   php bot.php