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

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

vkoori/laravel-jwt
==================

Integration of firebase/php-jwt library for laravel.

0.1.1(11mo ago)0537↓90%1PHPPHP ^8.1

Since Jul 18Pushed 11mo agoCompare

[ Source](https://github.com/vkoori/laravel-jwt)[ Packagist](https://packagist.org/packages/vkoori/laravel-jwt)[ RSS](/packages/vkoori-laravel-jwt/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (1)

Laravel JWT Integration with Firebase PHP JWT
=============================================

[](#laravel-jwt-integration-with-firebase-php-jwt)

This package provides a simple way to integrate JWT (JSON Web Tokens) for authentication in your Laravel application using the `firebase/php-jwt` library.

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

[](#installation)

To install the package, run the following command:

```
composer require vkoori/laravel-jwt
```

Once the package is installed, you need to publish the provider using the following Artisan command:

```
php artisan vendor:publish --provider="Vkoori\LaravelJwt\JwtServiceProvider"
```

This will publish the `config/jwt-config.php` configuration file where you can manage the JWT settings.

Usage
-----

[](#usage)

### Generating JWT Token

[](#generating-jwt-token)

You can generate a JWT token by calling the service as follows:

```
\Vkoori\LaravelJwt\Services\Jwt::sign()
    ->setAudience($audience)
    ->setSubject($this->getAuthIdentifier())
    ->setScopes($scopes)
    ->setExpirationTime(Carbon::now()->addSeconds($ttl))
    ->encode();
```

### Verifying JWT Token

[](#verifying-jwt-token)

To verify and decode the JWT token, you can use the following code:

```
Jwt::verify(token: $token);
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance50

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Total

2

Last Release

350d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87c1574170082a3c779cca97f90846e478dcc46114fc66480fbd04975b71a746?d=identicon)[vkoori](/maintainers/vkoori)

---

Tags

jwt

### Embed Badge

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

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.0k14](/packages/tallstackui-tallstackui)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.0k1](/packages/mike-bronner-laravel-model-caching)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1563.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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