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

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

codfee/instagram
================

An easy-to-use instagram tags,users,likes,posts and simple Instagram api package

1.0(8y ago)015MITPHPPHP ^7.0

Since Nov 18Pushed 8y ago1 watchersCompare

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

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

Instagram
=========

[](#instagram)

[![instagram](https://camo.githubusercontent.com/04a7aa431a8484f0c3e100e9a03ebecf35c422aef85bf41e0053345be1b55a6b/687474703a2f2f7777772e69726f6e70617065722e636f6d2f776562696e74656c2f77702d636f6e74656e742f75706c6f6164732f323031332f30392f696e7374616772616d2d6170692e706e67)](https://camo.githubusercontent.com/04a7aa431a8484f0c3e100e9a03ebecf35c422aef85bf41e0053345be1b55a6b/687474703a2f2f7777772e69726f6e70617065722e636f6d2f776562696e74656c2f77702d636f6e74656e742f75706c6f6164732f323031332f30392f696e7374616772616d2d6170692e706e67)

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

```
use CodFee\Instagram\Instagram;

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

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

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 codfee/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 `CodFee\Instagram\Instagram` instance with your Instagram access token.

```
use CodFee\Instagram\Instagram;

$instagram = new Instagram('Your-ACCESS-TOKEN');
```

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

```
$instagram->get($table='users',$user='self',$condition='/media/recent');
default -> users/self/media/recent
$table = users,tags,media,locations
$instagram->getMediaById($id);
/media/$id?access_token=$token
```

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

License
-------

[](#license)

&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD
=================================

[](#-head)

[MIT](LICENSE) © [Xalid Balagozov](https://phpdevelop.xyz)

> > > > > > > 2268f95d350dc2387484a26cef8808249ba27753

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3147d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5727658?v=4)[Xalid Balagozov](/maintainers/XalidBalagozov)[@XalidBalagozov](https://github.com/XalidBalagozov)

---

Tags

instagramfeedmediatagsrecent

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

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

8.5k5.9M726](/packages/sylius-sylius)[razorpay/ifsc

Razorpay IFSC Codes Library

385205.4k](/packages/razorpay-ifsc)[florianv/exchanger

PHP exchange rate provider layer for currency conversion: 30+ services, chain fallback, and caching.

1865.0M20](/packages/florianv-exchanger)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27584.5k4](/packages/apigee-apigee-client-php)[brd6/notion-sdk-php

Notion SDK for PHP

6123.0k](/packages/brd6-notion-sdk-php)[php-http/httplug-bundle

Symfony integration for HTTPlug

39021.7M61](/packages/php-http-httplug-bundle)

PHPackages © 2026

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