Download the PHP package dotkernel/dot-session without Composer
On this page you can find all versions of the php package dotkernel/dot-session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dotkernel/dot-session
More information about dotkernel/dot-session
Files in dotkernel/dot-session
Package dot-session
Short Description DotKernel session component extending and customizing laminas-session
License MIT
Homepage https://github.com/dotkernel/dot-session
Informations about the package dot-session
dot-session
[!IMPORTANT] dot-session is a wrapper on top of laminas/laminas-session
DotKernel session component extending and customizing laminas-session
Installation
Run the following command in your project folder
Configuration
Register SessionMiddleware
in your application's pipeline by adding the following line to config/pipeline.php
:
Register dot-session
's ConfigProvider in your application's configurations by adding the following line to config/config.php
:
Usage
Basic usage to access and use the session object in your services:
Method #1 - Factory
Step 1: Create a factory that retrieves the SessionManger from the container
Register the factory in any mode you register factories on your project.
Step 2: Access through your Service
Method #2 - Injection
If you use annotated injection you can inject the Session Manager in your services.
All versions of dot-session with dependencies
laminas/laminas-servicemanager Version ^3.22.1
laminas/laminas-session Version ^2.21.0
laminas/laminas-stdlib Version ^3.18.0
psr/http-message Version ^1.0 || ^2.0
psr/http-server-middleware Version ^1.0.2