Documentation
php-instagram-query
A simple php class to extract user profile picture, page_ids, profile_id & name from instagram
Installation is super-easy via Composer:
composer require peterujah/php-instagram-query
USAGES
Initialize InstagramQuery with the necessary parameters and register your custom classes.
use \Peterujah\NanoBlock\InstagramQuery;
$lookup = new InstagramQuery();
$username = "peterchig";
OR with options
use \Peterujah\NanoBlock\InstagramQuery;
$lookup = new InstagramQuery($browserLanguage, $userAgent);
$username = "peterchig";
Fine user profile picture
$ig = $lookup->findProfilePic($username);
echo $ig->picture;
var_dump($ig);
Fine user page ids
$ig = $lookup->findPageId($username);
echo $ig->page;
var_dump($ig);
Fine user profile id
$ig = $lookup->findProfileId($username);
echo $ig->profile;
var_dump($ig);
Fine user instagram name
$ig = $lookup->findProfileName($username);
echo $ig->name;
var_dump($ig);