2017 © Pedro Peláez
 

library nb-sessions

Non-Blocking-Sessions made easy

image

tflori/nb-sessions

Non-Blocking-Sessions made easy

  • Thursday, April 12, 2018
  • by tflori
  • Repository
  • 1 Watchers
  • 3 Stars
  • 564 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 8 Versions
  • 6 % Grown

The README.md

NbSessions

Build Status Coverage Status Latest Stable Version Total Downloads License, (*1)

A non-blocking session handler for PHP. This library is inspired by duncan3dc/sessions., (*2)

Examples

basic

$session = new \NbSessions\SessionInstance('my-app');
$session->set('login', 'jdoe');
$login = $session->get('login');

namespaces

To avoid key collisions you can use namespaces., (*3)

$session->set('foo', 'bar');

$namespace = $session->getNamespace('my-module');
$namespace->set('foo', 'baz');

$session->get('foo'); // 'bar'
$namespace->get('foo'); // 'baz'

static class

For easier access you can use the static class. But remember: it's more hard to test., (*4)

$namespace = \NbSessions\Session::getNamespace('my-module');
\NbSessions\Session::get('foo');

Setup

Install it via composer and use without configuration., (*5)

composer require tflori/nb-sessions

Read the docs for more information., (*6)

The Versions

12/04 2018

dev-master

9999999-dev

Non-Blocking-Sessions made easy

  Sources   Download

Apache-2.0 Apache 2.0

The Requires

  • php ^7.0

 

The Development Requires

18/10 2017

v1.1.0

1.1.0.0

Non-Blocking-Sessions made easy

  Sources   Download

Apache 2.0

The Requires

  • php ^7.0

 

The Development Requires

18/10 2017

dev-feature-destroyEmpty

dev-feature-destroyEmpty

Non-Blocking-Sessions made easy

  Sources   Download

Apache 2.0

The Requires

  • php ^7.0

 

The Development Requires

12/10 2017

dev-feature-startWithSet

dev-feature-startWithSet

Non-Blocking-Sessions made easy

  Sources   Download

Apache 2.0

The Requires

  • php ^7.0

 

The Development Requires

10/02 2017

dev-feature-deleteKeys

dev-feature-deleteKeys

Non-Blocking-Sessions made easy

  Sources   Download

Apache 2.0

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

05/02 2017

v1.0.1

1.0.1.0

Non-Blocking-Sessions made easy

  Sources   Download

Apache 2.0

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

05/02 2017

dev-fix-cookieLifetime

dev-fix-cookieLifetime

Non-Blocking-Sessions made easy

  Sources   Download

Apache 2.0

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

04/02 2017

v1.0.0

1.0.0.0

Non-Blocking-Sessions made easy

  Sources   Download

Apache 2.0

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires