PHPackages                             asseco-voice/laravel-jwt-authentication - 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. asseco-voice/laravel-jwt-authentication

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

asseco-voice/laravel-jwt-authentication
=======================================

Package to decode and verify JWT tokens

v3.0.1(2y ago)16.9k↓100%[4 PRs](https://github.com/asseco-voice/laravel-jwt-authentication/pulls)MITPHPPHP ^8.1

Since Feb 10Pushed 1y ago6 watchersCompare

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

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

[![](https://github.com/asseco-voice/art/raw/main/evil_logo.png)](https://see.asseco.com)

Laravel JWT Authentication
==========================

[](#laravel-jwt-authentication)

This package enables backend authentication via JWT-token

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

[](#installation)

Install the package through composer. It is automatically registered as a Laravel service provider, so no additional actions are required to register the package.

```
composer require asseco-voice/laravel-jwt-authentication

```

In order to gain access to additional configuration run

```
php artisan vendor:publish

```

This will publish the asseco-authentication.php configuration file into your config directory

Quick usage
-----------

[](#quick-usage)

A minimal requirement to make the package work is to set the `JWT_PUBLIC_KEY` in your .env file. This is the location of the public key with which the package will verify the signature of the token.

The package works out-of-the-box. Once installed the application will have a new guard registered.

```
'jwt-api' => [
   'driver' => 'token',
   'provider' => 'token_provider',
],

```

Activating it on your desired route follows the standard laravel implementation.

`Route::apiResource('YourResource', 'YourController')->middleware('auth:jwt-api');`

This will force the framework to use the following configuration to resolve the user from a JWT-token and injecting it as the authenticated user.

```
'token_provider' => [
    'driver' => 'jwt_provider'
]

```

The public.pem key will be fetched on the first incoming request from the configured `AUTH_URL`

Fetch key command
-----------------

[](#fetch-key-command)

Package comes with a convenience command. The only requirement is the env value `AUTH_URL`.

```
php artisan asseco:fetch-key

```

The method is made to hit the configured endpoint and extract the public key from the response. By default, the command will look for the key `public_key` in the response, however this can be configured through a config file.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 67.4% 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 ~93 days

Recently: every ~128 days

Total

12

Last Release

887d ago

Major Versions

v0.3.1 → v1.0.02022-05-05

v1.1.0 → v2.0.02022-07-12

v2.1.0 → v3.0.02023-08-08

PHP version history (4 changes)v0.1.0PHP ^7.4.1

v0.2.0PHP ^7.4.1 || ^8.0

v1.0.0PHP ^8.0

v3.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d61de45741b74e7d4a9ee5778160cf54ae5e94a615ae1a6f72b6d1e5fae68d12?d=identicon)[Norgul](/maintainers/Norgul)

---

Top Contributors

[![Norgul](https://avatars.githubusercontent.com/u/11718157?v=4)](https://github.com/Norgul "Norgul (29 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![AkronimBlack](https://avatars.githubusercontent.com/u/39061674?v=4)](https://github.com/AkronimBlack "AkronimBlack (5 commits)")[![josip-milotic](https://avatars.githubusercontent.com/u/42002911?v=4)](https://github.com/josip-milotic "josip-milotic (2 commits)")[![assefvisic](https://avatars.githubusercontent.com/u/60132037?v=4)](https://github.com/assefvisic "assefvisic (1 commits)")

---

Tags

authenticationjwtjwt-authenticationjwt-tokenlaravellaravel-8-packagemicroservicemicroservicespackagephp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/asseco-voice-laravel-jwt-authentication/health.svg)

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

###  Alternatives

[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

55342.3k2](/packages/jeremy379-laravel-openid-connect)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)

PHPackages © 2026

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