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

ActiveLibrary

phalapi/session
===============

PhalApi 2.x 扩展类库：Session 操作工具

52842PHP

Since Oct 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Zhangzijing/session)[ Packagist](https://packagist.org/packages/phalapi/session)[ RSS](/packages/phalapi-session/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

session
=======

[](#session)

为PhalApi封装的库

使用方法:

```
//建议写到config/di.php里面
\PhalApi\DI()->session = new \PhalApi\Session\Lite();
// or: $di->session = new \PhalApi\Session\Lite();

//设置:
\PhalApi\DI()->session->你的自定义字段名称=值;

//获取:
$val = \PhalApi\DI()->session->你的自定义字段名称;

//销毁:
\PhalApi\DI()->session->destroy()

//获取session_id
$val = \PhalApi\DI()->session->session_id;
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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/35d70b1236f8f67d96ba3da4ba88889faf2837ff8f7ab62acc54fe6cb4992c87?d=identicon)[dogstarhuang](/maintainers/dogstarhuang)

---

Top Contributors

[![EwigMidori](https://avatars.githubusercontent.com/u/15173855?v=4)](https://github.com/EwigMidori "EwigMidori (5 commits)")[![pluveto](https://avatars.githubusercontent.com/u/50045289?v=4)](https://github.com/pluveto "pluveto (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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