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. [Utility &amp; Helpers](/categories/utility)
4. /
5. peterujah/php-instagram-query

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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)140MITPHPPHP &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 today

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 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

894d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

43.2k341.0k1](/packages/ccxt-ccxt)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[oat-sa/tao-core

TAO core extension

66143.7k123](/packages/oat-sa-tao-core)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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