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

ActiveLibrary

lyue/laravel-jwt
================

laravel jwt

v1.0(5y ago)07MITPHP

Since Dec 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/linyuee/laravel-jwt)[ Packagist](https://packagist.org/packages/lyue/laravel-jwt)[ RSS](/packages/lyue-laravel-jwt/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

#### JWT plugin for laravel

[](#jwt-plugin-for-laravel)

is maybe the simplest JWT plugin

#### Installation

[](#installation)

composer require lyue/laravel-jwt

#### config

[](#config)

```
php artisan vendor:publish

```

and choose the lyue/laravel-jwt,it will create a config file jwt.php in config path

```
 //provider
 Lyue\LaravelJwt\JwtProvider::class
 //facade
 'Jwt' => \Lyue\LaravelJwt\JwtFacade::class

```

set it into provider and facade of config/app.php

#### Example

[](#example)

get a token

```
$payload = [
    'user_id'=>123,
    'iss'=>'www.baidu.com'
];
 $token = \Jwt::getToken($payload);

```

check token

```
\Jwt::verifyToken($token);

```

get payload

```
$payload = \Jwt::getPayload();

```

get payload by key

```
$user_id = \Jwt::getPayload('user_id');

```

you can set key=&gt;value as session

```
 \Jwt::set('username',$username);
 var_dump(\Jwt::get('username'));

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

1966d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20659595?v=4)[linyueb](/maintainers/linyueb)[@linyueb](https://github.com/linyueb)

### Embed Badge

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

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

PHPackages © 2026

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