An easy-to-use and simple Instagram package.
use Vinkla\Instagram\Instagram;
// Create a new instagram instance.
$instagram = new Instagram();
// Fetch the media feed.
$instagram->get('jerryseinfeld');
Require this package, with Composer, in the root directory of your project.
$ composer require vinkla/instagram
First you need to create a new Vinkla\Instagram\Instagram
instance.
use Vinkla\Instagram\Instagram;
$instagram = new Instagram();
Then to fetch the data you can use the get()
method.
$instagram->get('jerryseinfeld');
To preview the JSON data you can visit the page in your browser.