Download the PHP package anders/slim-session without Composer
On this page you can find all versions of the php package anders/slim-session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download anders/slim-session
More information about anders/slim-session
Files in anders/slim-session
Download anders/slim-session
More information about anders/slim-session
Files in anders/slim-session
Vendor anders
Package slim-session
Short Description Session middleware and helper for Slim framework 3.
License MIT
Homepage https://github.com/bryanjhv/slim-session
Package slim-session
Short Description Session middleware and helper for Slim framework 3.
License MIT
Homepage https://github.com/bryanjhv/slim-session
Please rate this library. Is it a good library?
Informations about the package slim-session
slim-session
Simple middleware for Slim Framework 3, that allows managing PHP
built-in sessions and includes a Helper
class to help you with the $_SESSION
superglobal.
For the middleware version for Slim Framework 2, please check out the slim-2
branch in this repository.
Installation
Add this line to require
block in your composer.json
:
Or, run in a shell instead:
Usage
Supported options
lifetime
: How much should the session last? Default20 minutes
. Any argument thatstrtotime
can parse is valid.path
,domain
,secure
,httponly
: Options for the session cookie.name
: Name for the session cookie. Defaults toslim_session
(instead of PHP'sPHPSESSID
).autorefresh
:true
if you want session to be refresh when user activity is made (interaction with server).
Session helper
A Helper
class is available, which you can register globally or instantiate:
That will provide $app->session
, so you can do:
Contributors
Here are the big ones listed. :smile:
TODO
- Complete
Helper
tests. (thanks @Zemistr) - Slim-specific tests (integration with Slim App).
License
MIT
All versions of slim-session with dependencies
PHP Build Version
Package Version
The package anders/slim-session contains the following files
Loading the files please wait ....