2017 © Pedro Peláez
 

library session

Session component

image

gobline/session

Session component

  • Wednesday, February 1, 2017
  • by mdecaffmeyer
  • Repository
  • 1 Watchers
  • 2 Stars
  • 91 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Session component

Gobline\Session\NamespacedSession allows to segregate all session data into different namespaces. A default namespace exists for those who only want one namespace for all their session data., (*1)

Usage

$session = new Gobline\Session\NamespacedSession('MyNamespace');

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

$session->get('foo'); // returns "bar"

$session->get('corge'); // "corge" not found, throws \InvalidArgumentException

$session->get('corge', 'grault'); // "corge" not found, returns default "grault" value

$session->remove('foo');

$session->clearAll(); // removes all session variables from "MyNamespace" namespace

$session->setNamespace('AnotherNamespace'); // switch namespace

Installation

You can install the Session component using the dependency management tool Composer. Run the require command to resolve and download the dependencies:, (*2)

composer require gobline/session

The Versions

01/02 2017

dev-master

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

Session component

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6.0

 

by Mathieu Decaffmeyer

session gobline

03/12 2015

v2.0.0

2.0.0.0 https://github.com/gobline

Session component

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6.0

 

by Mathieu Decaffmeyer

session gobline

17/01 2015

v1.0.2

1.0.2.0 https://github.com/mendoframework

Mendo Session Component

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6.0

 

The Development Requires

by Mathieu Decaffmeyer

session mf mendoframework mendo framework

13/11 2014

v1.0.1

1.0.1.0 https://github.com/mendoframework

Mendo Session Component

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6.0

 

The Development Requires

by Mathieu Decaffmeyer

session mf mendoframework mendo framework

11/11 2014

v1.0.0

1.0.0.0 https://github.com/mendoframework

Mendo Session Component

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.6.0

 

The Development Requires

by Mathieu Decaffmeyer

session mf mendoframework mendo framework