https://github.com/leafsphp/session
💽 Leaf session module
https://github.com/leafsphp/session
Last synced: 5 months ago
JSON representation
💽 Leaf session module
- Host: GitHub
- URL: https://github.com/leafsphp/session
- Owner: leafsphp
- Created: 2021-09-19T11:32:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-08T17:05:29.000Z (11 months ago)
- Last Synced: 2025-08-06T10:41:28.618Z (6 months ago)
- Language: PHP
- Homepage: https://leafphp.dev/modules/session/
- Size: 36.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Leaf Session Module
# Leaf PHP
[](https://packagist.org/packages/leafs/session)
[](https://packagist.org/packages/leafs/session)
[](https://packagist.org/packages/leafs/session)
Leaf's core session functionality packaged as a serve-yourself module.
## Installation
You can easily install Leaf using the [Leaf CLI](https://cli.leafphp.dev):
```bash
leaf install session
```
Or with [Composer](https://getcomposer.org/).
```bash
composer require leafs/session
```
## Usage
```php
session()->set('name', 'Leaf PHP');
session()->get('name');
```
Check the full documentation [here](https://leafphp.dev/modules/session/).