PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Ujah Chigozie peter   PHP Instagram API Query   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Instagram API Query
Get details about Instagram users from their pages
Author: By
Last change:
Date: 1 year ago
Size: 1,019 bytes
 

Contents

Class file image Download

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);