Skip to content

paradisesessions/session

Repository files navigation

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

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