PHPackages                             xjzhang/redis-token - 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. xjzhang/redis-token

ActiveLibrary

xjzhang/redis-token
===================

PHP Token Clie

04.1k↓100%PHP

Since Dec 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/xingjia05/redis-token)[ Packagist](https://packagist.org/packages/xjzhang/redis-token)[ RSS](/packages/xjzhang-redis-token/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

EXAMPLE
-------

[](#example)

第一步： 实现RedisInterface，获取redis对象 $redisClient = new RedisClient($this-&gt;redisHandle);

第二步： 通过TokenClient获取登录信息， 如果获取失败： 1、当前请求是ajax请求则返回空 2、当前请求是非ajax请求则跳转登录页面 $tokenClient = new TokenClient($redisClient, $this-&gt;redisAuth, $this-&gt;redisDb, $this-&gt;consoleUrl, $this-&gt;requestUri); $tokenClient-&gt;get(); $tokenClient-&gt;expire(); $this-&gt;tokenData = $tokenClient-&gt;getTokenData();

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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/76ca47b4ec21db905467d512480ab4e0f7a11308a5485bbc80e72eb8278003a5?d=identicon)[xingjia05](/maintainers/xingjia05)

### Embed Badge

![Health badge](/badges/xjzhang-redis-token/health.svg)

```
[![Health](https://phpackages.com/badges/xjzhang-redis-token/health.svg)](https://phpackages.com/packages/xjzhang-redis-token)
```

PHPackages © 2026

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