PHPackages                             next/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. next/session

ActiveLibrary

next/session
============

0.1.1(1y ago)137Apache-2.0PHPPHP ^8.2

Since Oct 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/next-laboratory/session)[ Packagist](https://packagist.org/packages/next/session)[ Docs](https://github.com/next-laboratory/session)[ RSS](/packages/next-session/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Session组件，支持File和Redis(不支持协程) Handler，可以自定义SesssionHandler
----------------------------------------------------------

[](#session组件支持file和redis不支持协程-handler可以自定义sesssionhandler)

```
composer require next/session
```

```
$sessionHandler = new \Next\Session\Handler\FileHandler();

$session = new \Next\Session\Session($sessionHandler);

$session->start(null); // 如果为null则创建id
$session->set('foo', 'bar');
$session->get('foo');
$session->save();
$session->close();

$sessionId = $session->getId();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~206 days

Total

2

Last Release

723d ago

PHP version history (2 changes)0.1PHP ^8.0|^8.1|^8.2

0.1.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae8591a5d36c52794b3fbc72b1d4199edc62984305386ff65dd97e399137b21f?d=identicon)[chengyao](/maintainers/chengyao)

---

Top Contributors

[![bbuugg](https://avatars.githubusercontent.com/u/64066545?v=4)](https://github.com/bbuugg "bbuugg (24 commits)")

### Embed Badge

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

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

PHPackages © 2026

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