PHPackages                             christopher-paul-shaw/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. christopher-paul-shaw/token

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

christopher-paul-shaw/token
===========================

Generating, Validating and Destorying tokens

1.0.0(7y ago)01PHPPHP ^7.1

Since Jun 27Pushed 7y agoCompare

[ Source](https://github.com/christopher-paul-shaw/Token)[ Packagist](https://packagist.org/packages/christopher-paul-shaw/token)[ RSS](/packages/christopher-paul-shaw-token/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Summary
=======

[](#summary)

Generate, Validate and Destroy tokens.

Usage
=====

[](#usage)

```
$tokenManager = new Token('exampletoken','./tokens');
$token = $tokenManager->create();
if ($tokenManager->validate($token)) { echo "Valid Token" }
if (!$tokenManager->validate($token)) { echo "Token Invalid When Used" }

```

Test
====

[](#test)

As features are added, there will be new tests to prove they work as intended. You can run the tests yourself using the following command.

```
vendor/bin/phpunit test

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

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

2559d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3262023?v=4)[chris-shaw](/maintainers/chris-shaw)[@chris-shaw](https://github.com/chris-shaw)

---

Top Contributors

[![christopher-paul-shaw](https://avatars.githubusercontent.com/u/12035126?v=4)](https://github.com/christopher-paul-shaw "christopher-paul-shaw (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/christopher-paul-shaw-token/health.svg)

```
[![Health](https://phpackages.com/badges/christopher-paul-shaw-token/health.svg)](https://phpackages.com/packages/christopher-paul-shaw-token)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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