peterujah/php-instagram-query

A simple php class to extract user profile picture, page_ids, profile_id & name from instagram.

1.1 2024-01-22 03:02 UTC

This package is auto-updated.

Last update: 2024-11-22 04:52:47 UTC


README

A simple php class to extract user profile pictures, page_ids, profile_id followers, following, posts & 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 List of supported os for userAgent string [ 'chrome', 'firefox', 'explorer', 'iphone', 'android', 'mobile', 'windows', 'mac', 'linux' ]

use \Peterujah\NanoBlock\InstagramQuery;
$lookup = new InstagramQuery($browserLanguage, $os);
$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);

Fine user followers

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

Fine user following

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

Fine user posts

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