New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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
Laravel:5
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

ipunkt/social-auth

Wrapper which allows login through oauth-esque providers by only setting their c...

187 1
oriceon/oauth-5-laravel

OAuth Service Provider for Laravel 5

1,684,967 172
artdarek/oauth-4-laravel

OAuth Service Provider for Laravel 4

528,104 677
ipunkt/composer-about

Parses composer.lock and returns informations about the used packages

10,464 3
fannypack/ledger

ledger implementation for laravel

288 30

Version History

Version Released PHP Laravel License
v0.0.1 >=5.4.0 ~5.0 MIT