2017 © Pedro Peláez
 

library sucre-session

image

cyrill/sucre-session

  • Monday, February 9, 2015
  • by t-cyrill
  • Repository
  • 1 Watchers
  • 1 Stars
  • 90 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Sucre/Session

Sucre/Session is simple loosely-coupled PHP $_SESSION wrapper., (*1)

## Requirement

  • PHP 5.4 or later

## Installation

Download the composer.phar., (*2)

``` sh $ curl -s http://getcomposer.org/installer | php, (*3)


Run Composer: `php composer.phar require "cyrill/sucre-session"` ## Usage -------------------- ```php <?php reqire __DIR__.'/composer/autoload.php'; use Sucre\Session; Session::init($regenerate = true); // start session Session::set('foo', 'bar'); // $_SESSION['foo'] = 'bar'; Session::get('foo'); // returns 'bar' Session::setFlash('foofoo', 'barbar'); Session::getFlash('foofoo'); // returns 'barbar' Session::generateId(); Session::destroy();

## How to test?

Sucre\Session is tested by PHPUnit., (*4)

Run composer composer install --dev. All you have to do is to run phpunit., (*5)

## License

The MIT License, (*6)

The Versions

09/02 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar cyrill

09/02 2015

0.0.3

0.0.3.0

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Avatar cyrill

20/01 2015

0.0.2

0.0.2.0

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar cyrill

15/06 2013

0.0.1

0.0.1.0

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar cyrill