golem/auth-storage-zend

Zend Session storage adapter for Golem Auth

2.0.0 2017-05-08 22:14 UTC

This package is auto-updated.

Last update: 2022-06-12 08:37:38 UTC


README

Latest Stable Version Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight

Zend Framework - Zend Session storage adapter for Golem Auth

Install

Via Composer

$ composer require golem/auth-storage-zend

Usage

Follow the documentation on Golem Auth to create a user model and a user repository class.

$session = new \Zend\Session\Container();
$storage = new \Golem\Auth\Storage\ZendSessionStorage($session);
// get an instance of your user repository however you need to
$userRepository = new UserRepository($database_connection);
$auth = new \Golem\Auth($storage, $userRepository);

Testing

$ composer test

License

The MIT License (MIT). Please see License File for more information.