PHPackages                             andruby/tokens-auth - 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. andruby/tokens-auth

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

andruby/tokens-auth
===================

v0.2.5(2y ago)02731MITPHPPHP ^7.1|^8.0

Since Mar 18Pushed 2y ago2 watchersCompare

[ Source](https://github.com/zhmcoder/tokens-auth)[ Packagist](https://packagist.org/packages/andruby/tokens-auth)[ RSS](/packages/andruby-tokens-auth/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (21)Used By (1)

Multiple Tokens Auth
====================

[](#multiple-tokens-auth)

> A Laravel guard for multiple token auth

TODO
----

[](#todo)

- README
- Expire tokens

php artisan vendor:publish --provider="Andruby\\ApiToken\\ApiTokenAuthServiceProvider"

confi/auth.php中guards下增加以下配置： 'api' =&gt; \[ 'driver' =&gt; 'tokens-auth', 'provider' =&gt; 'api\_users', \], 'user' =&gt; \[ 'driver' =&gt; 'tokens-userinfo', 'provider' =&gt; 'api\_users', \], providers增加以下配置： 'api\_users' =&gt; \[ 'driver' =&gt; 'eloquent', 'model' =&gt; Andruby\\ApiToken\\ApiToken::class \], 数据库 php artisan migrate --path=/database/migrations/2019\_06\_14\_000000\_create\_api\_tokens\_table.php

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

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

Every ~38 days

Recently: every ~14 days

Total

20

Last Release

788d ago

PHP version history (3 changes)v0.0.1PHP ^7.1

v0.1.2PHP ^7.1|^8.1

v0.1.4PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/090fe946a2f7190b3c326b4e9102e46f68fb660c29e0c52bb43ec8f59e232776?d=identicon)[322zx](/maintainers/322zx)

---

Top Contributors

[![fansweige](https://avatars.githubusercontent.com/u/15138052?v=4)](https://github.com/fansweige "fansweige (6 commits)")

---

Tags

laraveltokensauthguard

### Embed Badge

![Health badge](/badges/andruby-tokens-auth/health.svg)

```
[![Health](https://phpackages.com/badges/andruby-tokens-auth/health.svg)](https://phpackages.com/packages/andruby-tokens-auth)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2011.0k](/packages/alajusticia-laravel-logins)[benbjurstrom/cognito-jwt-guard

A laravel auth guard for JSON Web Tokens issued by Amazon AWS Cognito

1113.1k](/packages/benbjurstrom-cognito-jwt-guard)[mpyw/scoped-auth

Apply specific scope for user authentication.

1180.5k](/packages/mpyw-scoped-auth)

PHPackages © 2026

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