foa/auth-session-bundle

Integration of Aura.Auth and Aura.Session

0.2.0 2017-06-30 06:06 UTC

This package is auto-updated.

Last update: 2024-10-07 19:52:36 UTC


README

Integrate aura/session and aura/auth.

Foreword

PHP version compatibilty

See .travis.yml file.

Installation

composer require foa/auth-session-bundle

Quality

Scrutinizer Code Quality Code Coverage Build Status

First install the dependencies via the command : composer install

To run the unit tests at the command line, issue ./vendor/bin/phpunit.

This library attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.

Community

To ask questions, provide feedback, or otherwise communicate with the Aura community, please join our Google Group, follow @auraphp on Twitter, or chat with us on #auraphp on Freenode.

Getting Started

Instantiation

$session_factory = new \FOA\Auth_Session_Bundle\SessionFactory();
$session = $session_factory->newInstance($_COOKIE);
$segment = new \FOA\Auth_Session_Bundle\Segment($session, 'Aura\Auth\Session');
$auth_factory = new \Aura\Auth\AuthFactory($_COOKIE, $session, $segment);