PHP code example of astrotomic / instagram-parser

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

    

astrotomic / instagram-parser example snippets


$instagram = new Manager();
$instagram->setConfig('/your/path/for/the/cache/files', 'storage_path'); // optional but recommended

// get recent Media informations by User
$data = $instagram->getUserRecentMedia('username');

// get recent Media informations by Tag
$data = $instagram->getTagRecentMedia('tag');