Installation | Technologies | Using | Tests
Classe simples para gestão de sessões do PHP.
By Composer.
Via Composer.
composer require paradisesessions/session
Exemplo de uso da classe.
$options = [];
$session = new ParadiseSessions\Session($options);
// set session
$session->set('email', '[email protected]');
// 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();
Test class with PHPUnit.
Testes na classe realizados com PHPUnit.
composer test