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

1.0 2017-11-18 17:00 UTC

This package is not auto-updated.

Last update: 2020-05-23 17:52:33 UTC



An easy-to-use and simple Instagram package.

use CodFee\Instagram\Instagram;

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

// Fetch the user's recent media feed.


Instagram is decoupled from any library sending HTTP requests (like Guzzle), instead it uses an abstraction called HTTPlug 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. Below is an example using Guzzle 6:

$ composer require codfee/instagram php-http/message php-http/guzzle6-adapter


First you need to generate an access token using Pixel Union's access token generator or by creating an Instagram application.


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.

default -> users/self/media/recent
$table = users,tags,media,locations

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


<<<<<<< HEAD

MIT © Xalid Balagozov