joem / session
A helper library to easily manage sessions.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/joem/session
Requires (Dev)
- phpunit/phpunit: ^9
README
A simple helper library to easily navigate and manage sessions in PHP. Requires PHP 8.
Install
composer require joem/session
Usage
// Set an index session()->set('name', 'Joe'); // Get an index session()->get('name'); // Get an index with a default return type if the index does not exist session()->get('name', 'Name not found'); // See if an index exists session()->has('name');
Session is inspired by the Laravel session object and facade.
Contributing
If you would like to contribute, you're more than welcome to propose new changes or accept open issues - just go ahead! Thanks :)