dotenv/instagram

A simple inspired by socialite library for laravel to authenticate users and obtain data from instagram api.
23 1
Install
composer require dotenv/instagram
Latest Version:v0.0.1
PHP:>=5.4.0
License:MIT
Last Updated:Nov 24, 2017
Links: GitHub  ·  Packagist
Maintainer: tperrelli

Instagram

A simple inspired by socialite library for laravel to authenticate users and obtain data from instagram api.

Total Downloads Latest Stable Version Build Status

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.

Wiki

License

Instagram library is licensed under [The MIT License (MIT)] (https://github.com/dotenv/instagram/blob/master/LICENSE)(LICENSE).

Related Packages

thesoulless/oauth-5-laravel

OAuth Service Provider for Laravel 5

1,198 1
edbizarro/laravel-facebook-ads

Facebook & Instagram Ads for Laravel 5.6

29,943 135
oriceon/oauth-5-laravel

OAuth Service Provider for Laravel 5

1,613,315 174
artdarek/oauth-4-laravel

OAuth Service Provider for Laravel 4

517,186 679
socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

2,019,059 40