PHP code example of superbalist / laravel-lusitanian-oauth-session-store
1. Go to this page and download the library: Download superbalist/laravel-lusitanian-oauth-session-store library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
superbalist / laravel-lusitanian-oauth-session-store example snippets
use App;
use OAuth\ServiceFactory;
use Superbalist\LusitanianOAuth\LaravelTokenSessionStore;
// this example demonstrates creating a github service
$factory = new ServiceFactory();
$store = App::make('session.store');
$storage = new LaravelTokenSessionStore($store);
$credentials = [
'[[github key]]',
'[[github secret]]',
'[[url]]',
];
$gitHub = $factory->createService('GitHub', $credentials, $storage, array('user'));