Superbalist / laravel-lusitanian-oauth-session-store by superbalist

A Laravel session storage interface for the lusitanian/oauth library
3,939
2
38
Package Data
Maintainer Username: superbalist
Maintainer Contact: info@superbalist.com (Superbalist.com a division of Takealot Online (Pty) Ltd)
Package Create Date: 2016-01-27
Package Last Update: 2017-02-06
Language: PHP
License: MIT
Last Refreshed: 2020-10-16 15:12:23
Package Statistics
Total Downloads: 3,939
Monthly Downloads: 31
Daily Downloads: 1
Total Stars: 2
Total Watchers: 38
Total Forks: 0
Total Open Issues: 0

laravel-lusitanian-oauth-session-store

A Laravel session storage interface for the lusitanian/oauth library

Author StyleCI Software License Packagist Version Total Downloads

Installation

composer require superbalist/laravel-lusitanian-oauth-session-store

Usage

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'));