jeevan / instagram_api
PHP SDK for instagram API
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jeevan/instagram_api
Requires
- guzzlehttp/guzzle: ^6.2
- symfony/http-foundation: ^3.1
This package is not auto-updated.
Last update: 2025-11-03 18:42:36 UTC
README
##PHP Instagram SDK
This package implement Instagram's endpoint in PHP
Installation
composer require jeevan/instagram_api
Usage
use Jeevan\Instagram;
$config = [
'CLIENT_ID' => CLIENT_ID,
'CLIENT_SECRET' => CLIENT_SECRET,
'REDIRECT_URI' => REDIRECT_URI
];
$scope = [
'basic',
];
$instagram = new Instagram($config, $scope);
Get authorization URL
$url = $instagram->getAuthorizationURL();
Let user click on the link so that they can give permission to your app
Once redirected back
$instagram->processAccessToken();
Now we can call the endpoint, example: Get current user's details
$user = $instagram->getSelf();