It's for generating and validating Json Web Token (JWT) communicating with parties together. Features:
- Simple
- Easy to use
- Dynamic configuration
- Lightweight
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>");
You can contribute to this package by discovering bugs and opening issues.
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.
This is open-sourced software licensed under the MIT license.