PHP code example of peterujah / php-instagram-query

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

    

peterujah / php-instagram-query example snippets

 
use \Peterujah\NanoBlock\InstagramQuery;
$lookup = new InstagramQuery();
$username = "peterchig";
 
use \Peterujah\NanoBlock\InstagramQuery;
$lookup = new InstagramQuery($browserLanguage, $os);
$username = "peterchig";

$ig = $lookup->findProfilePic($username);
echo $ig->picture;
var_dump($ig);

$ig = $lookup->findPageId($username);
echo $ig->page;
var_dump($ig);

$ig = $lookup->findProfileId($username);
echo $ig->profile;
var_dump($ig);

$ig = $lookup->findProfileName($username);
echo $ig->name;
var_dump($ig);

$ig = $lookup->findFollowers($username);
echo $ig->followers;
var_dump($ig);

$ig = $lookup->findFollowing($username);
echo $ig->following;
var_dump($ig);

$ig = $lookup->findPosts($username);
echo $ig->posts;
var_dump($ig);
md
composer