| Package Data | |
|---|---|
| Maintainer Username: | Arrilot |
| Maintainer Contact: | nekrasov.ilya90@gmail.com (Nekrasov Ilya) |
| Package Create Date: | 2015-09-16 |
| Package Last Update: | 2020-07-27 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-07 15:01:41 |
| Package Statistics | |
|---|---|
| Total Downloads: | 697 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 5 |
| Total Watchers: | 0 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Use Laravel session Api to work with plain-old php sessions in any project
composer require arrilot/sessions
Register a service provider anywhere in your bootstrap code.
Arrilot\Sessions\SessionProvider::register();
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.