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)02791MITPHPPHP ^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 3w 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 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

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

836d 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

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6783.6k6](/packages/hasinhayder-tyro)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)

PHPackages © 2026

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