<commit_before># laravel-lusitanian-oauth-session-store

A Laravel session storage interface for the lusitanian/oauth library

[![Author](http://img.shields.io/badge/author-@superbalist-blue.svg?style=flat-square)](https://twitter.com/superbalist)
[![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 OAuth\ServiceFactory;
use Superbalist\LusitanianOAuth\LaravelTokenSessionStore;

// this example demonstrates creating a github service

$factory = new ServiceFactory();
$storage = new LaravelTokenSessionStore();

$credentials = [
    '[[github key]]',
    '[[github secret]]',
    '[[url]]',
];

$gitHub = $factory->createService('GitHub', $credentials, $storage, array('user'));
```<commit_msg>forgot to resolve session.store from ioc in readme<commit_after># laravel-lusitanian-oauth-session-store

A Laravel session storage interface for the lusitanian/oauth library

[![Author](http://img.shields.io/badge/author-@superbalist-blue.svg?style=flat-square)](https://twitter.com/superbalist)
[![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'));
```
{'fraction_non_alphanumeric': 0.16536603493125232, 'fraction_numerical': 0.0, 'mean_word_length': 6.415977961432507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5762230', 'n_tokens_mistral': 947, 'n_tokens_neox': 902, 'n_words': 117}