arrilot / sessions
Use Laravel session Api to work with plain old PHP sessions in any project
Installs: 697
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/arrilot/sessions
Requires
- php: >=5.4.0
- illuminate/support: 5.*
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2025-10-21 02:33:44 UTC
README
Laravel-like framework agnostic session package
Use Laravel session Api to work with plain-old php sessions in any project
Installation
-
composer require arrilot/sessions
-
Register a service provider anywhere in your bootstrap code.
Arrilot\Sessions\SessionProvider::register();
Usage
Arrilot\Sessions\Session
is the main class provided by the package.
You can treat this class just like the Laravel Session facade and call literally any method listed here + Session::now()
from 5.1.
Example:
use Arrilot\Sessions\Session; Session::flash('message', 'Email was sent');
Note that the package does not actually require laravel session component. It provides Laravel API to work with built-in php sessions ($_SESSION) instead.