PHPackages                             leafs/session - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. leafs/session

ActiveLibrary[Framework](/categories/framework)

leafs/session
=============

Leaf PHP session + flash modules

v4.0.1(1y ago)224.9k—5.4%5MITPHPCI passing

Since Sep 20Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/leafsphp/session)[ Packagist](https://packagist.org/packages/leafs/session)[ Docs](https://leafphp.dev/modules/session/)[ GitHub Sponsors](https://github.com/leafsphp)[ Fund](https://opencollective.com/leaf)[ RSS](/packages/leafs-session/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (11)Used By (5)

 [![](https://camo.githubusercontent.com/d98ee5e32c2ff016fdfdac6c42654a908f4cc34b229c7b00caacc5a717455ae8/68747470733a2f2f6c6561667068702e6465762f6c6f676f2d636972636c652e706e67)](https://camo.githubusercontent.com/d98ee5e32c2ff016fdfdac6c42654a908f4cc34b229c7b00caacc5a717455ae8/68747470733a2f2f6c6561667068702e6465762f6c6f676f2d636972636c652e706e67)

Leaf Session Module
===================

[](#leaf-session-module)

Leaf PHP
========

[](#leaf-php)

[![Latest Stable Version](https://camo.githubusercontent.com/c41c19c342789b72e6018691878d659cc837b852bdd6dab91dbc5743a808b21f/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f73657373696f6e2f762f737461626c65)](https://packagist.org/packages/leafs/session)[![Total Downloads](https://camo.githubusercontent.com/1393c34a582c98fc0295aa17d9cad48d4a55ac4117e29ea526c3c60a651443df/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f73657373696f6e2f646f776e6c6f616473)](https://packagist.org/packages/leafs/session)[![License](https://camo.githubusercontent.com/35844e86c4031373b09f511b500f14367ece9db7ae6393310bd28ef8cc84e72e/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f73657373696f6e2f6c6963656e7365)](https://packagist.org/packages/leafs/session)

Leaf's core session functionality packaged as a serve-yourself module.

Installation
------------

[](#installation)

You can easily install Leaf using the [Leaf CLI](https://cli.leafphp.dev):

```
leaf install session
```

Or with [Composer](https://getcomposer.org/).

```
composer require leafs/session
```

Usage
-----

[](#usage)

```
session()->set('name', 'Leaf PHP');
session()->get('name');
```

Check the full documentation [here](https://leafphp.dev/modules/session/).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance60

Regular maintenance activity

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~140 days

Recently: every ~33 days

Total

10

Last Release

436d ago

Major Versions

v1.1.0 → v2.02023-07-09

v2.3.2 → v4.02025-03-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29547806?v=4)[Mychi](/maintainers/Mychi)[@mychi](https://github.com/mychi)

---

Top Contributors

[![mychidarko](https://avatars.githubusercontent.com/u/26604242?v=4)](https://github.com/mychidarko "mychidarko (38 commits)")[![ibnsultan](https://avatars.githubusercontent.com/u/28471267?v=4)](https://github.com/ibnsultan "ibnsultan (3 commits)")

---

Tags

httpphpframeworksessionflashleaf

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/leafs-session/health.svg)

```
[![Health](https://phpackages.com/badges/leafs-session/health.svg)](https://phpackages.com/packages/leafs-session)
```

###  Alternatives

[leafs/leaf

Elegant PHP for modern developers

1.3k44.3k9](/packages/leafs-leaf)[utopia-php/framework

A simple, light and advanced PHP HTTP framework

295618.4k9](/packages/utopia-php-framework)[utopia-php/http

A simple, light and advanced PHP HTTP framework

2962.8k2](/packages/utopia-php-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
