New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

vkoori/jwt

Integration of adhocore/jwt library for laravel/lumen.
796
Install
composer require vkoori/jwt
Latest Version:1.0.0
PHP:>=8.1
Last Updated:Mar 23, 2023
Links: GitHub  ·  Packagist
Maintainer: vkoori

Installation

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: '');

adhocore/jwt documention

Powered By Koorosh safe Ashrafi

Related Packages

vkoori/pgp

This package is used for communication between laravel/lumen services.

794 0
vkoori/laravel-jwt

Integration of firebase/php-jwt library for laravel.

1,055 0
jwt
tlx3/laravel-jwt-starter

Boilerplate for using your own API based JWT authentication on Laravel applicati...

305 3
epsoftware/jwt-auth

Auth with jwt

28 1
xaamin/jwt

PHP Implementation of JSON Web token with RSA

10,404 2

Version History

Version Released PHP License
1.0.0 >=8.1