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(6y ago)01PHPPHP ^7.1

Since Jun 27Pushed 6y 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 2d 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 22% 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

2513d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bafba22afd8eaab18fa018a05f6d8082881138b6fd434615047ca07b1620a79?d=identicon)[chris-shaw](/maintainers/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

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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