Documentation

Elogram is an “eloquent” way of accessing Instagram’s API, for PHP 5.5+. It offers:

  • Simple interface for interacting with the web API. Use methods and arguments instead of cURL.
  • Provides an easy-to-use CSRF-protected solution for retrieving access tokens.
  • Well-tested
  • Extensible
  • Makes pagination a breeze.
use Larabros\Elogram\Client;

$client = new Client($clientId, $clientSecret, $accessToken, $redirectUrl);

header('Content-Type: application/json');
$response = $client->media()->search(51.503349, -0.252271);
echo json_encode($response->get());

$response = $client->users()->find('skrawg');
echo json_encode($response->get());

$response  = $client->users()->follows();
echo json_encode($response->get());

$response  = $client->paginate($response, 2);
echo json_encode($response->get());

User Guide