PHPackages                             julionc/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. [API Development](/categories/api)
4. /
5. julionc/instagram

AbandonedArchivedLibrary[API Development](/categories/api)

julionc/instagram
=================

A PHP library for the Instagram API

013PHP

Since Mar 22Pushed 11y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#php-instagram)

[![Latest Version](https://camo.githubusercontent.com/d3335b6e093bc5a7adcc93a2a599e874b67b583f45c45f119eb1b950ce290688/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6a756c696f6e632f7068702d696e7374616772616d2e7376673f7374796c653d666c6174)](https://github.com/julionc/php-instagram/releases)[![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f5e92c75df212dc9ca36d9f40b5e176c848e7dbb74335dc0f647508a2ad711bd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a756c696f6e632f7068702d696e7374616772616d2f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/julionc/php-instagram)[![Coverage Status](https://camo.githubusercontent.com/1099ef0a972f106e898bf61cc8cde70ef436666c48b5a5229d4bdc27d53f1ff1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6a756c696f6e632f7068702d696e7374616772616d2e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/julionc/php-instagram/code-structure)[![Quality Score](https://camo.githubusercontent.com/493ddbae93abede8752bd0fcafae0d84b41c4ceae5d24c7f64a2bcafb94306fe/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a756c696f6e632f7068702d696e7374616772616d2e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/julionc/php-instagram)[![Total Downloads](https://camo.githubusercontent.com/8a6de1feb21aad4f4a93b8ffbe3fef16c3a6c9d6d506c6ffa1d07f49c3d76c1d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a756c696f6e632f7068702d696e7374616772616d2e7376673f7374796c653d666c6174)](https://packagist.org/packages/julionc/php-instagram)

A PHP library for the Instagram API

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [How to Use](#how-to-use)
- [EndPoints](#endpoints)
    - [User](#user)

Installation
------------

[](#installation)

Using [composer](https://packagist.org/packages/julionc/instagram):

```
{
    "require": {
        "julionc/instagram": "dev-master"
    }
}

```

How to Use
----------

[](#how-to-use)

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

$config = array(
    'client_id' => 'YOUR_CLIENT_ID',
    'client_secret' => 'YOUR_CLIENT_SECRET',
    'redirect_uri' => 'CALLBACK_URL',
    'scope' => array('basic')
);

$client = new Instagram\Auth($config);

// In view, get the Authorize URL
$client->authorize_url();
```

```
// profile.php
// Preload the settings and capture the access code (Callback step).

if (!$access_token) {
    $client = new Instagram\Auth($config);
    $client->requestAccessToken($access_code);
    $_SESSION['access_token'] = $client->getAccessToken();
}

$instagram = new \Instagram\Instagram($access_token, 'secret_key_here');
```

If you do not wish to put your client credentials in your code (understandable), simply set it to the environment variable `instagram.client_id` and `instagram.client_secrect`. So php-instagram will automatically pick it up. See `example` folder.

EndPoints
=========

[](#endpoints)

User
----

[](#user)

```
$instagram = new \Instagram\Instagram($access_token);

// Get basic information about a user.
$user = $instagram->user->info();

// See the authenticated user's feed.
$feed = $instagram->user->feed();

// Get the most recent media published by a user.
$media = $instagram->user->media();
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d2bc72ce9dbb860a214a933c54e43b1833db7d1d19ff0e1b3955c56f7b7c4e5?d=identicon)[julionc](/maintainers/julionc)

---

Top Contributors

[![julionc](https://avatars.githubusercontent.com/u/981762?v=4)](https://github.com/julionc "julionc (20 commits)")

---

Tags

instagram-apiphpphp-library

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M453](/packages/google-gax)

PHPackages © 2026

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