super-simple/session

Super Simple Session library.

dev-main 2023-08-05 08:18 UTC

This package is auto-updated.

Last update: 2024-05-05 09:57:14 UTC


README

A super simple session manager.

Build Status codecov Latest Stable Version PHP Version Require License Total Downloads

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.