eskirex/session

Eskirex Session Component

dev-master 2017-12-24 14:06 UTC

This package is not auto-updated.

Last update: 2024-04-28 02:21:55 UTC


README

Hello. This is Session component.

Examples

<?php

    require __DIR__ . '/vendor/autoload.php';
    
    use Eskirex\Component\Session\Exceptions\SessionRuntimeException;
    use Eskirex\Component\Session\Session;
    
    
    $session = new Session();
    
    try {
        $session->start();
    } catch (SessionRuntimeException $e) {
    
    }
    
    $session->set('foo.bar', 'baz');
    
    echo $session->get('foo.bar');
    // baz
    
    print_r($session->get('foo'));
    // Array
    // (
    //     [bar] => baz
    // )

License

MIT