1. Go to this page and download the library: Download fishmarket/instaphp library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fishmarket / instaphp example snippets
Instaphp\Instaphp;
// Config
$config = array(
'client_id' => 'YOUR_CLIENT_ID'
);
// Get an instance of the Instaphp object
$api = Instaphp::Instance(null, $config);
// Get the response for Popular media
$response = $api->Media->Popular();