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

ActiveLibrary

hutong/session
==============

session管理

015PHP

Since Mar 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/HuTong/session)[ Packagist](https://packagist.org/packages/hutong/session)[ RSS](/packages/hutong-session/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

session
=======

[](#session)

```
// 开启session
(new userSession(session配置, cache配置)->start();
;cache
cache.default.type          = "Redis"
cache.default.host          = "127.0.0.1"
cache.default.port          = "6379"
cache.default.password      = "123456"
cache.default.prefix        = "xxx."
cache.default.db            = "0"
;cache file
cache.file.type             = "File"
cache.file.path             = APPLICATION_PATH "/data/cache/"
cache.file.prefix           = "admin"
;session
session.connection          = "Storage"
session.drive               = "default"
session.lifetime            = 20

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7aaff7a01a02c245b7536d3155d8febba66c30abb902d070d4da16a23a926254?d=identicon)[HuTong](/maintainers/HuTong)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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