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

ActiveLibrary[API Development](/categories/api)

delta98/instaphp
================

A library for accessing Instagram's API (v2)

2.1(11y ago)024MITPHPPHP &gt;=5.4.0

Since Sep 28Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (20)Used By (0)

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 dependancies. 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/).

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...

```
