juliangut/slim-session-middleware

Slim Framework session handler middleware

0.1 2015-03-15 17:27 UTC

This package is auto-updated.

Last update: 2024-10-15 11:44:44 UTC


README

Build Status Code Climate Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads

Juliangut Slim Framework session handler middleware

Session handler middleware for Slim Framework.

Installation

Best way to install is using Composer:

php composer.phar require juliangut/slim-session-middleware

Then require_once the autoload file:

require_once './vendor/autoload.php';

Usage

Just add as any other middleware.

use Slim\Slim;
use Jgut\Slim\Middleware\SessionMiddleware;

$app = new Slim();
$app->add((new SessionMiddleware())
    ->name('session')
    ->lifetime(4800)
);

Contributing

Found a bug or have a feature request? Please open a new issue. Have a look at existing issues before

See file CONTRIBUTING.md

License

Release under BSD-3-Clause License.

See file LICENSE included with the source code for a copy of the license terms