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

A Laravel session storage interface for the lusitanian/oauth library
4,204
2
39
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: 2021-06-21 15:14:01
Package Statistics
Total Downloads: 4,204
Monthly Downloads: 45
Daily Downloads: 5
Total Stars: 2
Total Watchers: 39
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'));