juliangut / slim-session-middleware
Slim Framework session handler middleware
0.1
2015-03-15 17:27 UTC
Requires
- php: >=5.4
- slim/slim: ~2.4
Requires (Dev)
- phpmd/phpmd: ~2.2
- phpunit/phpunit: ~4.5
- sebastian/phpcpd: ~2.0
- squizlabs/php_codesniffer: ~2
This package is auto-updated.
Last update: 2024-11-15 11:46:57 UTC
README
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