PHPackages                             jvaru/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. jvaru/instagram

ActiveLibrary[API Development](/categories/api)

jvaru/instagram
===============

An easy-to-use and simple Instagram package

02PHP

Since Aug 7Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

instafeed
=========

[](#instafeed)

[![instagram](https://user-images.githubusercontent.com/42133180/43707781-72e2277e-9986-11e8-8ffc-9030ba31e715.jpg)](https://user-images.githubusercontent.com/42133180/43707781-72e2277e-9986-11e8-8ffc-9030ba31e715.jpg)

> An easy-to-use and simple [Instagram](https://www.instagram.com/) package.

```
use Jvaru\Instagram\Instagram;

// Create a new instagram instance.
$instagram = new Instagram('your-access-token');

// Fetch recent user media items.
$instagram->media();

// Fetch user information.
$instagram->self();
```

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

[](#installation)

Instagram is decoupled from any library sending HTTP requests (like Guzzle), instead it uses an abstraction called [HTTPlug](http://httplug.io) which provides the http layer used to send requests to exchange rate services. This gives you the flexibility to choose what HTTP client and PSR-7 implementation you want to use.

Read more about the benefits of this and about what different HTTP clients you may use in the [HTTPlug documentation](http://docs.php-http.org/en/latest/httplug/users.html). Below is an example using [Guzzle 6](http://docs.guzzlephp.org/en/latest/index.html):

```
$ composer require jvaru/instagram php-http/message php-http/guzzle6-adapter
```

Usage
-----

[](#usage)

First you need to generate an access token using Pixel Union's [access token generator](http://instagram.pixelunion.net) or by creating an [Instagram application](https://www.instagram.com/developer/authentication).

```
5937104658.5688ed0.675p84e21a0341gcb3b44b1a13d9de91

```

Then create a new `Jvaru\Instagram\Instagram` instance with your Instagram access token.

```
use Jvaru\Instagram\Instagram;

$instagram = new Instagram('5937104658.5688ed0.675p84e21a0341gcb3b44b1a13d9de91');
```

To fetch the user's recent media items you may use the `media()` method.

```
$instagram->media();
```

To fetch the user information data you may use the `self()` method.

```
$instagram->self();
```

> **Note:** You can only fetch a user's recent media from the given access token.

Rate Limiting
-------------

[](#rate-limiting)

The Instagram allows you to call their API 200 times per hour. Try to cache the responses in your application.

> *The Instagram API uses the same rate limiting as the Graph API (200 calls per user per hour) with one exception: the /media/comments edge limits writes to 60 writes per user per hour. Please refer to the Graph API's rate limiting documentation for more information* - [Facebook](https://developers.facebook.com/docs/instagram-api/overview/#rate-limiting)

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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://avatars.githubusercontent.com/u/42133180?v=4)[jayeshvaru7](/maintainers/jayeshvaru7)[@jayeshvaru7](https://github.com/jayeshvaru7)

---

Top Contributors

[![jayeshvaru7](https://avatars.githubusercontent.com/u/42133180?v=4)](https://github.com/jayeshvaru7 "jayeshvaru7 (3 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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