dotenv / instagram
A simple inspired by socialite library for laravel to authenticate users and obtain data from instagram api.
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/dotenv/instagram
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ~5.0|~6.0
- illuminate/contracts: ~5.0
- illuminate/http: ~5.0
- illuminate/support: ~5.0
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2025-09-28 08:43:36 UTC
README
A simple inspired by socialite library for laravel to authenticate users and obtain data from instagram api.
Installing
The package installation can be done with composer by the following command:
composer require dotenv/instagram
Usage
1 - Add the ServiceProvider in the app/config.php file.
Dotenv\Instagram\Providers\InstagramServiceProvider::class,
2 - Register an alias in the app/config.php file.
'Instagram' => Dotenv\Instagram\Facades\Instagram::class,
3 - Rgister a facade alias in app/config.php file.
'Instagram' => Dotenv\Instagram\Facades\Instagram::class,
4 - Publish config file.
php artisan vendor:publish --provider="dotenv\instagram"
5 - How to use it?
Route::get('auth/', function() { return \Instagram::authenticate(); }); Route::get('auth/callback', function() { $user = \Instagram::retrieveUser(); $userFromToken = \Instagram::userFromToken($user->token); });
6 - Go to wiki to see the full documentation.
License
Instagram library is licensed under [The MIT License (MIT)] (https://github.com/dotenv/instagram/blob/master/LICENSE)(LICENSE).