PHPackages                             lune/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lune/session

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lune/session
============

Session handler

v0.1.3(9y ago)049MITPHPPHP &gt;=7.0.0

Since Aug 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lunephp/session)[ Packagist](https://packagist.org/packages/lune/session)[ RSS](/packages/lune-session/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Lune\\Session
=============

[](#lunesession)

Basic session management

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

[](#installation)

Session is available on [Composer](http://getcomposer.org)

```
composer require lune/session

```

Usage example
-------------

[](#usage-example)

```
//create a new Manager
$sessions = new \Lune\Session\Manager();

//add a value to the session
$sessions->get('my-session')->set('foo', 'bar');

//add multiple values to the session
$sessions->get('my-session')->set(['foo2' => 'bar2']);

//retrieve a value from the session
$v = $sessions->get('my-session')->get('foo'); // returns 'bar'

//use a default value if the key does not exist
$v = $sessions->get('my-session')->get('foo3', 'bar3'); // returns 'bar3'

//check if a key is defined in the session
$sessions->get('my-session')->has('foo'); // returns true
//clear a value
$sessions->get('my-session')->remove('foo');

//clear multiple values
$sessions->get('my-session')->remove(['foo', 'foo2']);

//clear all values for a specific session
$sessions->get('my-session')->clear();
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~64 days

Total

4

Last Release

3404d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b57a4311f92e06e73f6c646344a069d0088747f22e420a583f91bd3e6ab1729?d=identicon)[studiowbe](/maintainers/studiowbe)

---

Top Contributors

[![willemwollebrants](https://avatars.githubusercontent.com/u/916958?v=4)](https://github.com/willemwollebrants "willemwollebrants (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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