Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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