An open API service indexing awesome lists of open source software.

https://github.com/leafsphp/session

💽 Leaf session module
https://github.com/leafsphp/session

Last synced: 5 months ago
JSON representation

💽 Leaf session module

Awesome Lists containing this project

README

          






Leaf Session Module




# Leaf PHP

[![Latest Stable Version](https://poser.pugx.org/leafs/session/v/stable)](https://packagist.org/packages/leafs/session)
[![Total Downloads](https://poser.pugx.org/leafs/session/downloads)](https://packagist.org/packages/leafs/session)
[![License](https://poser.pugx.org/leafs/session/license)](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/).