PHPackages                             peterujah/php-instagram-query - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. peterujah/php-instagram-query

ActiveLibrary

peterujah/php-instagram-query
=============================

A simple php class to extract user profile picture, page\_ids, profile\_id &amp; name from instagram.

1.1(2y ago)139MITPHPPHP &gt;=5.3.0

Since Sep 16Pushed 2y ago2 watchersCompare

[ Source](https://github.com/peterujah/php-instagram-query)[ Packagist](https://packagist.org/packages/peterujah/php-instagram-query)[ Docs](https://github.com/peterujah/php-instagram-query)[ RSS](/packages/peterujah-php-instagram-query/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

php-instagram-query
===================

[](#php-instagram-query)

A simple php class to extract user profile pictures, page\_ids, profile\_id followers, following, posts &amp; name from instagram

Installation is super-easy via Composer:

```
composer require peterujah/php-instagram-query
```

USAGES
======

[](#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);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~492 days

Total

2

Last Release

847d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce34af529a4ed50696211a2b4d330fbadd2d1738bc5d010523eb4a85cf342b17?d=identicon)[peterujah](/maintainers/peterujah)

---

Top Contributors

[![peterujah](https://avatars.githubusercontent.com/u/16369609?v=4)](https://github.com/peterujah "peterujah (9 commits)")

---

Tags

phpinstagramlibraryphp instagraminstagram profile picture

### Embed Badge

![Health badge](/badges/peterujah-php-instagram-query/health.svg)

```
[![Health](https://phpackages.com/badges/peterujah-php-instagram-query/health.svg)](https://phpackages.com/packages/peterujah-php-instagram-query)
```

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)[bupy7/xml-constructor

The array-like constructor of XML document structure.

1337.9k](/packages/bupy7-xml-constructor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
