leo / core-jwt
JSON Web Token Builder / Validator
v1.0.0
2019-04-05 08:34 UTC
Requires
- php: ^5.5.9 || ^7.0
- lcobucci/jwt: ^3.2
This package is auto-updated.
Last update: 2024-05-06 14:54:10 UTC
README
About
It's for generating and validating Json Web Token (JWT) communicating with parties together. Features:
- Simple
- Easy to use
- Dynamic configuration
- Lightweight
Usage
First of all, you need install some dependencies, please run this command before using.
composer install
Then you can use it now. See an example in a folder named examples/.
- Build a token
(new Leo\JWT\JWT())->buildToken();
- Validate a token
(new Leo\JWT\JWT())->checkValid("<token_string>");
Contributing
You can contribute to this package by discovering bugs and opening issues.
Security Vulnerabilities
If you discover a security vulnerability within this project, please send an e-mail to Kiet Tran via tuankiet1708@gmail.com. All security vulnerabilities will be promptly addressed.
License
This is open-sourced software licensed under the MIT license.