super-simple / session
Super Simple Session library.
dev-main
2023-08-05 08:18 UTC
Requires
- php: >=8.1
Requires (Dev)
- phpunit/phpunit: ^10.1
This package is auto-updated.
Last update: 2024-11-05 11:04:10 UTC
README
A super simple session manager.
Install
composer require super-simple/session
Requires PHP 8.1 or newer.
Usage
Basic usage:
<?php require_once __DIR__ . '/../vendor/autoload.php'; use SSSession\SessionFactory; $session = (new SessionFactory())->create(new MainSessionHandler(new YourStorage()), []); $session->start();
It could be use with the default php session handler.
<?php require_once __DIR__ . '/../vendor/autoload.php'; use SSSession\SessionFactory; $session = (new SessionFactory())->create(new \SessionHandler(), []); $session->start();
For more details check out the wiki.
License
The Super Simple Session is open-sourced software licensed under the MIT license.