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

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

aichenk/tp6-session
===================

tp6 session依赖注入实现，不使用中间件，更加灵活

1.0.0(5y ago)02.0k↓50%1MITPHP

Since Sep 18Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (1)

tp6-session
===========

[](#tp6-session)

tp6 session依赖注入实现，不使用中间件，更加灵活，仅需绑定即可正常使用Tp自带Session方法

运行环境
----

[](#运行环境)

- PHP 7.2+
- ThinkPHP 6

安装方法
----

[](#安装方法)

```
    composer require aichenk/tp6-session

```

使用
--

[](#使用)

- 绑定session到app中即可(使用匿名函数覆盖原session，直接new会导致每次都初始化)

```
// app/AppService.php 文件
public function register()
{
    // 服务注册
    $this->app->bind('session', function() {
        return invoke(\KaySess\Session::class);
    });
    // ...
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2060d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[topthink/think-captcha

captcha package for thinkphp

132934.4k68](/packages/topthink-think-captcha)[topthink/think-worker

workerman extend for thinkphp

202227.2k9](/packages/topthink-think-worker)[yunwuxin/think-cron

计划任务

17416.2k](/packages/yunwuxin-think-cron)[zzstudio/think-addons

The ThinkPHP6 Addons Package

1518.6k](/packages/zzstudio-think-addons)[topthink/think-annotation

Annotation For ThinkPHP

4831.5k8](/packages/topthink-think-annotation)[liliuwei/thinkphp-jump

适用于thinkphp6.0的跳转扩展

2874.4k1](/packages/liliuwei-thinkphp-jump)

PHPackages © 2026

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