https://github.com/superbalist/laravel-lusitanian-oauth-session-store
A Laravel session storage interface for the lusitanian/oauth library
https://github.com/superbalist/laravel-lusitanian-oauth-session-store
laravel laravel4 laravel4-package laravel5 laravel5-package oauth-library oauth2 php superbalist
Last synced: 4 months ago
JSON representation
A Laravel session storage interface for the lusitanian/oauth library
- Host: GitHub
- URL: https://github.com/superbalist/laravel-lusitanian-oauth-session-store
- Owner: Superbalist
- License: mit
- Archived: true
- Created: 2016-01-27T13:59:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-06T06:52:24.000Z (about 8 years ago)
- Last Synced: 2025-01-16T11:28:03.099Z (4 months ago)
- Topics: laravel, laravel4, laravel4-package, laravel5, laravel5-package, oauth-library, oauth2, php, superbalist
- Language: PHP
- Size: 4.88 KB
- Stars: 2
- Watchers: 40
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-lusitanian-oauth-session-store
A Laravel session storage interface for the lusitanian/oauth library
[](https://twitter.com/superbalist)
[](https://styleci.io/repos/50511109)
[](LICENSE)
[](https://packagist.org/packages/superbalist/laravel-lusitanian-oauth-session-store)
[](https://packagist.org/packages/superbalist/laravel-lusitanian-oauth-session-store)## Installation
```bash
composer require superbalist/laravel-lusitanian-oauth-session-store
```## Usage
```php
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'));
```