vkoori / jwt
Integration of adhocore/jwt library for laravel/lumen.
Installs: 794
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/vkoori/jwt
Requires
- php: >=8.1
- ext-json: *
- adhocore/jwt: ^1.1
Requires (Dev)
- laravel/lumen-framework: ^9.0|^10.0
This package is auto-updated.
Last update: 2025-09-23 16:00:37 UTC
README
composer require vkoori/jwt
Doc
By using this library, in addition to the features of adhocore/jwt
, you can also benefit from blacklist
and refresh token
.
You need to add the following to the env file:
JWT_BLACK_LIST=false
JWT_KEY=secret
JWT_ALGO=HS256
JWT_MAX_AGE=3600
JWT_LEEWAY=0
Sample
(new JWT)->encode(payload: [], header: []);
(new JWT)->decode(token: '', verify: true);
(new JWT)->refresh(token: '');
(new JWT)->expire(token: '');
Powered By |
---|