PHPackages                             wudege/token-assistant - 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. wudege/token-assistant

ActiveProject

wudege/token-assistant
======================

Token Management based Redis

v1.0.6(9y ago)215MITPHP

Since Nov 9Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (9)Used By (0)

Token Management based Redis
============================

[](#token-management-based-redis)

[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Build Status](https://camo.githubusercontent.com/fd2d8ae3cd2abc98dad2fe0703dd2ba5ae6020bb020063103a2da6b5d0df46bf/68747470733a2f2f7472617669732d63692e6f72672f7775646567652f746f6b656e2d617373697374616e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wudege/token-assistant)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/22e73eac8ff1ac7d2b241eb8ffd7c66883486b8ca074f06df0c97609d8b987b3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7775646567652f746f6b656e2d617373697374616e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wudege/token-assistant/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/f6c2bd6ecae76bfb6f055d2472a1df21ec436df4a1282b1598600fcd87131f70/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7775646567652f746f6b656e2d617373697374616e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/wudege/token-assistant?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/022b4dca2188e1f41586ac5542d860d0d783e77ad888ba080c16b7d3b294439a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7775646567652f746f6b656e2d617373697374616e742e737667)](https://packagist.org/packages/wudege/token-assistant)[![Total Downloads](https://camo.githubusercontent.com/44e78ad47742556ddc8405192c5769a9cb0d6c00afe9daf13aa8aaec719205f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7775646567652f746f6b656e2d617373697374616e742e737667)](https://packagist.org/packages/wudege/token-assistant)[![Twitter URL](https://camo.githubusercontent.com/a29718bad75dd7709d052812131602e05011ee8db979383af824ce0aca77297c/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f736869656c64732e696f2e7376673f7374796c653d736f6369616c267374796c653d666c61742d737175617265)](https://twitter.com/wudege)

INSTALL
-------

[](#install)

- Use the composer command or the composer.json file. That's the recommend way. And the SDK is here [`wudege/token-assistant`](https://packagist.org/packages/wudege/token-assistant)

```
$ composer require wudege/token-assistant
```

USAGE
-----

[](#usage)

```
require __DIR__ . '/vendor/autoload.php';

$config = array(
    'host'     => '127.0.0.1',
    'port'     => 6379,
    'database' => 0,
);
$userId = 9527;

$client     = new \Predis\Client($config);
$dispatcher = new \TokenAssistant\TokenDispatcher($client);
$token      = $dispatcher->assign($userId);
```

TEST
----

[](#test)

```
$ ./vendor/bin/phpunit tests/TokenAssistant/Tests
```

LICENSE
-------

[](#license)

The MIT License (MIT). [License File](https://github.com/wudege/token-assistant/blob/master/LICENSE).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~18 days

Total

8

Last Release

3380d ago

Major Versions

v0.0.1 → v1.0.02016-11-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d1a07bb6303e4ea765b0b73ba530510449d9b26854dd38213340ff0537c09f6?d=identicon)[wudege](/maintainers/wudege)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wudege-token-assistant/health.svg)

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

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[teamtnt/tntsearch

A fully featured full text search engine written in PHP

3.2k3.0M28](/packages/teamtnt-tntsearch)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[pdffiller/qless-php

PHP Bindings for qless

29113.2k1](/packages/pdffiller-qless-php)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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