PHPackages                             thisisdevelopment/laravel-api-token-middleware - 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. thisisdevelopment/laravel-api-token-middleware

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

thisisdevelopment/laravel-api-token-middleware
==============================================

Simple API token middleware for internal APIs

v1.4.0(2mo ago)01.7k1PHPPHP &gt;=7

Since Apr 6Pushed 2mo ago8 watchersCompare

[ Source](https://github.com/thisisdevelopment/laravel-api-token-middleware)[ Packagist](https://packagist.org/packages/thisisdevelopment/laravel-api-token-middleware)[ RSS](/packages/thisisdevelopment-laravel-api-token-middleware/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

laravel-api-token-middleware
============================

[](#laravel-api-token-middleware)

Simple API token middleware for Laravel applications

### Setup

[](#setup)

Publish the config by using the following command

`php artisan vendor:publish --provider="ThisIsDevelopment\LaravelApiTokenMiddleware\ApiTokenServiceProvider"`

The API token, token header field and unauthorized message are now configurable in `config/laravel-api-token-middleware.php`, the token is loaded from the `INTERNAL_API_TOKEN` env field by default.

### Usage

[](#usage)

To use the middleware, include:

`ThisIsDevelopment\LaravelApiTokenMiddleware\Http\Middleware\VerifyInternalApiToken`

In your middleware list.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance88

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

5

Last Release

61d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6728434?v=4)[Eric de Ruiter](/maintainers/ederuiter)[@ederuiter](https://github.com/ederuiter)

---

Top Contributors

[![dexmans](https://avatars.githubusercontent.com/u/254140?v=4)](https://github.com/dexmans "dexmans (2 commits)")[![SaschaMendel](https://avatars.githubusercontent.com/u/18728744?v=4)](https://github.com/SaschaMendel "SaschaMendel (2 commits)")[![bitsbiter](https://avatars.githubusercontent.com/u/53061049?v=4)](https://github.com/bitsbiter "bitsbiter (1 commits)")[![ederuiter](https://avatars.githubusercontent.com/u/6728434?v=4)](https://github.com/ederuiter "ederuiter (1 commits)")[![faijdherbe](https://avatars.githubusercontent.com/u/1048352?v=4)](https://github.com/faijdherbe "faijdherbe (1 commits)")

---

Tags

pluginlaravelpackage

### Embed Badge

![Health badge](/badges/thisisdevelopment-laravel-api-token-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/thisisdevelopment-laravel-api-token-middleware/health.svg)](https://phpackages.com/packages/thisisdevelopment-laravel-api-token-middleware)
```

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k17.8M58](/packages/lab404-laravel-impersonate)[lab404/laravel-auth-checker

Laravel Auth Checker allows you to log users authentication, devices authenticated from and lock intrusions.

223166.7k2](/packages/lab404-laravel-auth-checker)[rickycezar/laravel-jwt-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

24122.8k](/packages/rickycezar-laravel-jwt-impersonate)[hapidjus/laravel-impersonate-ui

UI for 404labfr/laravel-impersonate

371.5k](/packages/hapidjus-laravel-impersonate-ui)

PHPackages © 2026

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