This package is abandoned and no longer maintained. The author suggests using the johnshopkins/instahook package instead.

Simple wrapper for the Instagram API

v1.0 2014-07-02 18:01 UTC

This package is not auto-updated.

Last update: 2017-02-01 20:34:38 UTC


PHP wrapper for the Instagram API


HttpExchange, CacheExchange, and Resty components autoloaded with Composer.


include "path/to/vendor/autoload.php";

$httpEngine = new \HttpExchange\Adapters\Resty(new \Resty());
$datastore = new \CacheExchange\Adapters\APC();
$cache = new \CacheExchange\Cache($datastore);

$insta = new \InstaHook\Client($httpEngine, $cache, "yourClientID");

$media = $insta->getPopularMedia();

foreach ($media->data as $media) {
    echo "<img src=\"" . $media->images->low_resolution->url . "\" />";