PHPackages                             epsoftware/jwt-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. epsoftware/jwt-auth

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

epsoftware/jwt-auth
===================

Auth with jwt

v1.0.0(9y ago)128MITPHPPHP &gt;=5.6.4

Since Feb 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/evertonto/epsoftware-jwt-auth)[ Packagist](https://packagist.org/packages/epsoftware/jwt-auth)[ RSS](/packages/epsoftware-jwt-auth/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

epsoftware-jwt-auth
===================

[](#epsoftware-jwt-auth)

JWT LUMEN IMPLEMENTATION - BASED

Install Instructions
--------------------

[](#install-instructions)

```
1 - Uncoment in bootstrap/app.php
	- `$app->withFacades();`
	- `$app->withEloquent();`

2 - Create Class alias in bootstrap/app.php
	 - `$app->alias('App', 'Illuminate\Support\Facades\App');`

3 - Enable configures in bootstrap/app.php
	- `$app->configure('epsoftware-jwt-auth');`

4 - Create file in config folder `epsoftware-jwt-auth.php`
	- ` return [
	        'providers' => [
	            'model' => env('AUTH_MODEL', '\App\User'),
	            'field' => env('AUTH_FIELD', 'id')
	        ],

			'token'  => [
				'type' => env('AUTH_TOKEN_TYPE', 'Bearer')
			],

	        'iss'    => env('AUTH_ISS', ''),
	        'sub'    => env('AUTH_SUB', ''),
	        'aud'    => env('AUTH_AUD', ''),
	        'exp'    => env('AUTH_EXP', 600),
	        'nbf'    => env('AUTH_NBF', 1),
	        'jti'    => env('AUTH_JTI', ''),
	        'secret' => env('AUTH_SECRET', 'somesecretkey')
		];
	`
5 - Register Provider in bootstrap/app.php
	 - `$app->register(\Epsoftware\Auth\Providers\AuthServiceProvider::class);`

6 - Register the middleware in bootstrap/app.php
	- `$app->routeMiddleware([
	   	'jwt-auth'  => \Epsoftware\Auth\Middlewares\MiddlewareAuth::class,
		]);`

	- Remember it, On midddleware alias don't use reseverd names, like `'auth'`

7 - In `.env` make parameters `AUTH_something`
	- `AUTH_SECRET=somesecretkey`

```

Use Instructions
----------------

[](#use-instructions)

```
1 - Set middleware on Routes if you want to authenticate

	- Set middleware with yours 'alias'
		`$app->get('/route', ['middleware' => 'jwt-auth', 'uses' => 'Controller@get']);`

	- Required `Bearer Token` in Request Header Authorization

2 - Use Facades for get user

	- `$user = \Epsoftware\Auth\Facades\Auth::getUser());` returns `User object`
	- `$user->id` 	 || '1'
	- `$user->name` || 'Tom'

3 - Authentication user

	` if (\Epsoftware\Auth\Facades\Auth::autentication(['username' => 'value'],  $password ) ) {
		return Auth::getToken();
	}
	`

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3427d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce8ebf3608ff38af09028a2d457308a74cc41bf19801d04f7b868f4e3721e40c?d=identicon)[everton\_to](/maintainers/everton_to)

---

Top Contributors

[![evertondepaula](https://avatars.githubusercontent.com/u/16270345?v=4)](https://github.com/evertondepaula "evertondepaula (1 commits)")

---

Tags

jwtlumen

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/epsoftware-jwt-auth/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.7k51.8M368](/packages/tymon-jwt-auth)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84611.1M63](/packages/php-open-source-saver-jwt-auth)[laravel/pulse

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

1.7k15.1M129](/packages/laravel-pulse)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M184](/packages/laravel-ai)

PHPackages © 2026

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