PHPackages                             roketin/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. [Image &amp; Media](/categories/media)
4. /
5. roketin/instagram

ActiveLibrary[Image &amp; Media](/categories/media)

roketin/instagram
=================

An easy-to-use and simple Instagram package

8.0.0(7y ago)06MITPHPPHP ^7.0

Since Oct 4Pushed 7y ago2 watchersCompare

[ Source](https://github.com/roketin/instagram)[ Packagist](https://packagist.org/packages/roketin/instagram)[ RSS](/packages/roketin-instagram/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Instagram
=========

[](#instagram)

[![instagram](https://cloud.githubusercontent.com/assets/499192/11020990/f0f31dea-8632-11e5-95b1-77e72c7ba271.png)](https://cloud.githubusercontent.com/assets/499192/11020990/f0f31dea-8632-11e5-95b1-77e72c7ba271.png)

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

```
use Roketin\Instagram\Instagram;

// Create a new instagram instance.
$instagram = new Instagram('access_token');

// Fetch the user's recent media feed.
$instagram->get();
```

[![Build Status](https://camo.githubusercontent.com/d322f95a5fc121a6551ab778e26d4dbf46b3b51a7c321498b92b923d7b72a669/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f726f6b6574696e2f696e7374616772616d2f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/roketin/instagram)[![StyleCI](https://camo.githubusercontent.com/a6e321c148499c59535de55536af3e3d11be05709cd068f0a5490e819557c7f0/68747470733a2f2f7374796c6563692e696f2f7265706f732f32373231363832362f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/27216826)[![Coverage Status](https://camo.githubusercontent.com/00797ad297d98e161f64c7cce9fa463fc710352d6b1209085acf260835090525/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f726f6b6574696e2f696e7374616772616d2e7376673f7374796c653d666c6174)](https://codecov.io/github/roketin/instagram)[![Latest Version](https://camo.githubusercontent.com/2818e361a994f7a4f237385690efb5f1b421c542a2c5bc2a1448e6bcb8bb956d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f726f6b6574696e2f696e7374616772616d2e7376673f7374796c653d666c6174)](https://github.com/roketin/instagram/releases)[![License](https://camo.githubusercontent.com/91f4aa964bd1cc2f7c274c7c979fef61442210c0ad1f388941af33a292a3ee5a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f726f6b6574696e2f696e7374616772616d2e7376673f7374796c653d666c6174)](https://packagist.org/packages/roketin/instagram)

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 roketin/instagram php-http/message php-http/guzzle6-adapter
```

Usage
-----

[](#usage)

First you need to create a new `roketin\Instagram\Instagram` instance and add your access token. If you don't want to create a Instagram API application you can use [Pixel Union's access token generator](http://instagram.pixelunion.net) for Instagram.

```
use Roketin\Instagram\Instagram;

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

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

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

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

License
-------

[](#license)

[MIT](LICENSE) © [Vincent Klaiber](https://vinkla.com)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.8% 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

2780d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1852931?v=4)[Albert Christanto](/maintainers/albertchristanto)[@albertchristanto](https://github.com/albertchristanto)

---

Top Contributors

[![vinkla](https://avatars.githubusercontent.com/u/499192?v=4)](https://github.com/vinkla "vinkla (212 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (3 commits)")[![albertchristanto](https://avatars.githubusercontent.com/u/1852931?v=4)](https://github.com/albertchristanto "albertchristanto (1 commits)")[![andrewhood125](https://avatars.githubusercontent.com/u/1624718?v=4)](https://github.com/andrewhood125 "andrewhood125 (1 commits)")[![sidjain](https://avatars.githubusercontent.com/u/594088?v=4)](https://github.com/sidjain "sidjain (1 commits)")[![sophiekovalevsky](https://avatars.githubusercontent.com/u/1287883?v=4)](https://github.com/sophiekovalevsky "sophiekovalevsky (1 commits)")

---

Tags

instagramfeedmediarecent

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[florianv/exchanger

Currency exchange rates framework for PHP

1874.7M15](/packages/florianv-exchanger)[razorpay/ifsc

Razorpay IFSC Codes Library

382201.9k](/packages/razorpay-ifsc)[s9e/text-formatter

Multi-purpose text formatting and markup library. Plugins offer support for BBCodes, Markdown, emoticons, HTML, embedding third-party media (YouTube, etc...), enhanced typography and more.

2413.1M29](/packages/s9e-text-formatter)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[brd6/notion-sdk-php

Notion SDK for PHP

5918.0k](/packages/brd6-notion-sdk-php)

PHPackages © 2026

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