PHPackages                             mideal/laravel-jwt - 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. mideal/laravel-jwt

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

mideal/laravel-jwt
==================

Jwt auth for laravel

1.0.1(3y ago)011PHPPHP ^8.0.2

Since Feb 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mideal/laravel-jwt)[ Packagist](https://packagist.org/packages/mideal/laravel-jwt)[ RSS](/packages/mideal-laravel-jwt/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (10)Versions (3)Used By (0)

Introduction
------------

[](#introduction)

Laravel Jwt provides a authentication system with jwt for SPAs and API.

Installation
------------

[](#installation)

You may install Laravel Jwt via the Composer package manager:

```
composer require mideal/laravel-jwt

```

Next, you should publish the Jwt configuration files using the vendor:publish Artisan command. The jwt configuration file will be placed in your application's config directory:

```
php artisan vendor:publish --provider="Mideal\Jwt\JwtServiceProvider"
```

Protecting Routes
-----------------

[](#protecting-routes)

```
use Illuminate\Http\Request;

Route::middleware('auth:jwt')->get('/user', function (Request $request) {
    return $request->user();
});
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

1133d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c5ec2c62a3446faad9aa2ad4f4ea3d83d15d4ea61e84eca3b2a3ae78684f888?d=identicon)[mideal](/maintainers/mideal)

---

Top Contributors

[![mideal](https://avatars.githubusercontent.com/u/6316545?v=4)](https://github.com/mideal "mideal (10 commits)")

---

Tags

jwtlaravelauth

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mideal-laravel-jwt/health.svg)

```
[![Health](https://phpackages.com/badges/mideal-laravel-jwt/health.svg)](https://phpackages.com/packages/mideal-laravel-jwt)
```

###  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)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[benbjurstrom/cognito-jwt-guard

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

1113.1k](/packages/benbjurstrom-cognito-jwt-guard)

PHPackages © 2026

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