New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ngabor84/laravel-jwt-auth

JWT authentication middleware for the Laravel and Lumen framework
4,045

Larablocks Analysis

ngabor84/laravel-jwt-auth works with Laravel 11 and 13 (latest release 3.2.0, Apr 17, 2026).

Laravel 5 to 10 in earlier releases.

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Apr 17, 2026)
  • 50 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Maintained
  • Last stable release: Apr 17, 2026.
  • 1 release in the last 12 months.
  • First released: Nov 27, 2018.
  • Monthly downloads: 50, down 11% from six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require ngabor84/laravel-jwt-auth
Latest Version:3.2.0
PHP:^8.4
Laravel:11 · 13
Older releases:5 – 10
License:MIT
Last Updated:Apr 17, 2026
Links: GitHub  ·  Packagist
Maintainer: ngabor84

GitHub license

JWT Auth Middleware

JWT authentication middleware for the Laravel and Lumen framework.

About

This package allows you to authenticate the incoming requests with JWT authentication.

Installation

Require the ngabor84/laravel-jwt-auth package in your composer.json and update your dependencies:

composer require ngabor84/laravel-jwt-auth

Usage with Laravel

Add the service provider to the providers array in the config/app.php config file as follows:

'providers' => [
    ...
    \Middleware\Auth\Jwt\Providers\LaravelServiceProvider::class,
]

Run the following command to publish the package config file:

php artisan vendor:publish --provider="Middleware\Auth\Jwt\Providers\LaravelServiceProvider"

You should now have a config/jwt.php file that allows you to configure the basics of this package.

Usage with Lumen

Add the following snippet to the bootstrap/app.php file under the providers section as follows:

$app->register(\Middleware\Auth\Jwt\Providers\LumenServiceProvider::class);
...
$app->configure('jwt');

Create a config directory (if it's not exist), and create an jwt.php in it with the plugin configuration like this:

return [
    'secret' => env('JWT_SECRET'),
    'algo' => 'HS256',
    'expiration' => 10, // 10 minutes
    'decorateRequestWithTokenPayload' => false, // if it's true then after authentication the request will contain a tokenPayload attribute with the payload of the JWT token
];

Related Packages

nicoren/lumen-jwt-auth

JWT auth package for Lumen 8 and above

2 0
generationtux/jwt-artisan

JWT auth package for Laravel and Lumen

55,223 137
raditzfarhan/simple-jwt-auth

Just a simple jwt auth for Laravel and Lumen

219 1
ronakgolakiya/jwt-auth-artisan

JWT auth package for Laravel and Lumen

14 2
baleghsefat/laravel-jwt

Json Web Token for Laravel and Lumen

4 1

Version History

Version Released PHP Laravel License
3.2.0 ^8.4 ^11.0 || ^13.0 MIT
3.1.0 ^8.2 ^v11.26 MIT
3.0.0 ^8.1 ^v10.13 MIT
2.0.0 ^8.0 ^v9.9 MIT
1.0.0 ^8.0 ^v9.9 MIT