Simple session management class of PHP.

v1.0 2023-04-16 14:03 UTC

This package is auto-updated.

Last update: 2024-12-14 23:04:33 UTC


README

Paradise Sessions

Installation  |   Technologies  |   Using  |   Tests

Version PHP Version License

Project

Simple session management class of PHP.

Classe simples para gestão de sessões do PHP.

Installation

By Composer.

Via Composer.

composer require paradisesessions/session

Technologies

Using

Example of use class.

Exemplo de uso da classe.

$options = [];
$session = new ParadiseSessions\Session($options);

// set session
$session->set('email', 'name@server.com');

// verify exists
if ($session->has('email')) {
    echo $session->email;
}

// access property
echo $session->email;

// show all
print_r($session->all());

// unset session
$session->unset('email');

// destroy session
$session->destroy();

Tests

Test class with PHPUnit.

Testes na classe realizados com PHPUnit.

composer test