foa / auth-session-bundle
Integration of Aura.Auth and Aura.Session
0.2.0
2017-06-30 06:06 UTC
Requires
- aura/auth: ~2.0
- aura/session: ~2.0
- paragonie/random_compat: ^1|^2
Requires (Dev)
- aura/di: ~2.1
- phpunit/phpunit: ~5.7 || ~4.8
This package is auto-updated.
Last update: 2024-11-07 20:05:26 UTC
README
Integrate aura/session
and aura/auth
.
Foreword
PHP version compatibilty
See .travis.yml
file.
Installation
composer require foa/auth-session-bundle
Quality
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);