leo/core-jwt

JSON Web Token Builder / Validator

v1.0.0 2019-04-05 08:34 UTC

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/.

  1. Build a token
(new Leo\JWT\JWT())->buildToken();
  1. 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.