2017 © Pedro PelĂĄez
 

library session-handlers

Package providing various SessionHandlerInterface implementations

image

nofw/session-handlers

Package providing various SessionHandlerInterface implementations

  • Wednesday, April 19, 2017
  • by mark.sagikazar
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Session handlers

Latest Version Build Status Code Coverage Quality Score Total Downloads, (*1)

Package providing various SessionHandlerInterface implementations., (*2)

Install

Via Composer, (*3)

``` bash $ composer require nofw/session-handlers, (*4)



## Usage This package provides three Session Handler implementations: - PSR-6 - PSR-16 - Doctrine Cache Choose your backend and instantiate and register handler. ``` php $cache = new ImaginaryCacheItemPool(); $handler = new \Nofw\Session\CacheSessionHandler($cache); session_set_save_handler($handler);

Use your session as usual., (*5)

Logging

The SessionHandlerInterface does not allow throwing exceptions to indicate failure. Instead it expects the handler to return empty values (empty string or false). However, the PSR-X implementations do throw exceptions. To adhere the interface and to not lose the ability to detect failures, these implementations accept a PSR-3 logger as their second constructor argument and also implement the LoggerAwareInterface., (*6)

``` php $cache = new ImaginaryCacheItemPool(); $logger = new Monolog\Logger('nofw') $handler = new \Nofw\Session\CacheSessionHandler($cache, $logger);, (*7)


The caught exceptions are logged as errors. ## Testing ``` bash $ make test

Security

If you discover any security related issues, please contact us at mark.sagikazar@gmail.com., (*8)

License

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

The Versions

19/04 2017

dev-master

9999999-dev https://github.com/nofw

Package providing various SessionHandlerInterface implementations

  Sources   Download

MIT

The Requires

 

The Development Requires

by MĂĄrk SĂĄgi-KazĂĄr

session handler

18/04 2017

v0.2.0

0.2.0.0 https://github.com/nofw

Package providing various SessionHandlerInterface implementations

  Sources   Download

MIT

The Requires

 

The Development Requires

by MĂĄrk SĂĄgi-KazĂĄr

session handler

15/04 2017

v0.1.0

0.1.0.0 https://github.com/nofw

Package providing various SessionHandlerInterface implementations

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by MĂĄrk SĂĄgi-KazĂĄr

session handler