PHPackages                             instaphp/instaphp - 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. instaphp/instaphp

ActiveLibrary

instaphp/instaphp
=================

A library for accessing Instagram's API (v2)

2.0.13(11y ago)254195.9k↓31%80[1 issues](https://github.com/sesser/Instaphp/issues)[1 PRs](https://github.com/sesser/Instaphp/pulls)MITPHPPHP &gt;=5.4.0

Since Sep 28Pushed 7y ago9 watchersCompare

[ Source](https://github.com/sesser/Instaphp)[ Packagist](https://packagist.org/packages/instaphp/instaphp)[ Docs](http://instaphp.com)[ RSS](/packages/instaphp-instaphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (22)Used By (0)

Deprecation on the Horizon
--------------------------

[](#deprecation-on-the-horizon)

It seemed inevitable that the Instagram API would go by way of the graph API and that day is finally upon us. Behold the next best thing since sliced tofu; [Instagram Graph API](https://developers.facebook.com/products/instagram/).

As such, this library will go by way of the circular bin. I have little interest (and even less energy) to keep this going. The old API will cease to exist in July 2018.

Instaphp V2
-----------

[](#instaphp-v2)

This is version 2 of Instaphp. It's a complete rewrite from version 1 and is not backwards compatible. If you're using v1 and want to update to v2, you'll have to make a few changes. Some of the method names have changed and configuration is no longer an XML file. There are unit tests, but given the less than stellar reliability of Instagram's API, they are fairly useless.

If you're using composer, you shouldn't need to worry about dependencies. If you're not, you will have to figure out the include chain. The new version relies on [GuzzleHttp](http://docs.guzzlephp.org/en/latest/) and [MonoLog](https://github.com/Seldaek/monolog).

It's not battle tested, so I can't speak to it's reliability/speed/ease of use, but the unit test (generally) all pass. I will keep this in the development branch for a while until I think it's ready to move into master.

Usage
-----

[](#usage)

Here's a basic example showing how to get 10 popular posts...

```
