PHPackages                             dulabs/instagram - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. dulabs/instagram

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

dulabs/instagram
================

Instagram OAuth 2.0 Client

1.0.0(10y ago)020MITPHPPHP &gt;=5.5.0

Since Feb 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dulabs/instagram)[ Packagist](https://packagist.org/packages/dulabs/instagram)[ RSS](/packages/dulabs-instagram/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

New Instagram API
=================

[](#new-instagram-api)

Wrapper for new Instagram API

Installation
============

[](#installation)

Download branch master

See index.php to auth user with instagram.

See callback.php to get access token.

Login
=====

[](#login)

```
require_once(__DIR__.'/../vendor/autoload.php');

use Dulabs\Instagram\OAuthManager as OAuth;

$config['api_key'] = "";
$config['api_secret'] = "";
$config['callback_url'] = "http://localhost/instagram/demo/callback.php";
$config['response_type'] = OAuth::RESPONSE_TYPE_CODE;

$oauth = new OAuth();

// initialiaze config
$oauth->setConfig($config);

// define scopes
$loginurl = $oauth->login(['basic','public_content','follower_list']);

header("location: ".$loginurl);
```

Callback
========

[](#callback)

```
require_once(__DIR__.'/../vendor/autoload.php');

use Dulabs\Instagram\OAuthManager as OAuth;

$config['api_key'] = "";
$config['api_secret'] = "";
$config['callback_url'] = "http://localhost/instagram/callback.php";
$config['response_type'] = OAuth::RESPONSE_TYPE_CODE;

// We need to configure OAuth
$oauth = new OAuth();
$oauth->setConfig($config);

if(isset($_GET['code']) && !empty($_GET['code']))
{
	$token = $oauth->getAccessToken();
	setcookie("instagram_token",$token,time()+3600);
	header("location: demo.php");
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

3753d ago

### Community

Maintainers

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

---

Top Contributors

[![dulabs](https://avatars.githubusercontent.com/u/1040745?v=4)](https://github.com/dulabs "dulabs (1 commits)")

---

Tags

clientinstagramoauthoauth2authorizationauthorisation

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/dulabs-instagram/health.svg)

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

###  Alternatives

[league/oauth2-instagram

Instagram OAuth 2.0 Client Provider for The PHP League OAuth2-Client

761.0M31](/packages/league-oauth2-instagram)[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

251.7M1](/packages/mollie-oauth2-mollie-php)[omines/oauth2-gitlab

GitLab OAuth 2.0 Client Provider for The PHP League OAuth2-Client

36721.5k13](/packages/omines-oauth2-gitlab)

PHPackages © 2026

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