2017 © Pedro Peláez
 

library silexcsh

Cookie Session Handler for Silex (store session data client side)

image

renegare/silexcsh

Cookie Session Handler for Silex (store session data client side)

  • Thursday, October 9, 2014
  • by renegare
  • Repository
  • 0 Watchers
  • 1 Stars
  • 627 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SilexCSH

Silex Cookie Session Handler, (*1)

Build Status Coverage Status, (*2)

Requirements

Installation

$ composer require renegare/silexcsh:dev-master

Usage Examples:

Silex Usage

<?php

$app = new Silex\Application();

$app->register(new Renegare\SilexCSH\CookieSessionServiceProvider, [
    'session.cookie.options' => [
        'name' => 'CUSTOMNAME', // string
        'lifetime' => 0,        // int
        'path' => '/',          // string
        'domain' => null,       // string
        'secure' => false,      // boolean
        'httponly' => true      // boolean
    ]
]);

$app->get('/doing-nothing', function(Application $app) {
    return 'Nothing going on here with sessions';
});

$app->get('/persist', function(Application $app){
    $app['session']->set('message', 'Hello There!');
    return 'Check your cookie!';
});

$app->get('/read', function(Application $app){
    return print_r($app['session']->all(), true);
});

$app->get('/destroy', function(Application $app) {
    $app['session']->clear();
    return 'Ok Bye Bye!';
});

Test

Check out the repo and from the top level directory run the following command (xdebug required for coverage):, (*3)

$ composer update && vendor/bin/phpunit --coverage-text

Credits

Inspired by: [nelmio/NelmioSecurityBundle][3], (*4)

The Versions

09/10 2014

dev-master

9999999-dev

Cookie Session Handler for Silex (store session data client side)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mudi Ugbowanko

silex session cookies renegare

09/10 2014

v0.1.1

0.1.1.0

Cookie Session Handler for Silex (store session data client side)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mudi Ugbowanko

silex session cookies renegare

03/07 2014

v0.1.0

0.1.0.0

Cookie Session Handler for Silex (store session data client side)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mudi Ugbowanko

silex session cookies renegare

03/07 2014

v0.0.1

0.0.1.0

Cookie Session Handler for Silex (store session data client side)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mudi Ugbowanko

silex session cookies renegare