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(1y ago)0696↓81.3%1PHPPHP ^8.1

Since Jul 18Pushed 1y 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 2w 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

Maintenance47

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity37

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

397d 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.1k4.6M327](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

79227.1M231](/packages/laravel-mcp)[tallstackui/tallstackui

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

731189.9k16](/packages/tallstackui-tallstackui)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k2](/packages/mike-bronner-laravel-model-caching)[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.

1614.1k4](/packages/masterix21-laravel-licensing)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)

PHPackages © 2026

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