Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 10 days 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-06T06:52:24.000Z (almost 8 years ago)
- Last Synced: 2025-01-16T11:28:03.099Z (15 days 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
[![Author](http://img.shields.io/badge/[email protected]?style=flat-square)](https://twitter.com/superbalist)
[![StyleCI](https://styleci.io/repos/50511109/shield?branch=master)](https://styleci.io/repos/50511109)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Packagist Version](https://img.shields.io/packagist/v/superbalist/laravel-lusitanian-oauth-session-store.svg?style=flat-square)](https://packagist.org/packages/superbalist/laravel-lusitanian-oauth-session-store)
[![Total Downloads](https://img.shields.io/packagist/dt/superbalist/laravel-lusitanian-oauth-session-store.svg?style=flat-square)](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'));
```