Framework-agnostic PHP library to issue, parse and validate JSON Web Tokens
open sourceBSD-3-Clausefree
lcobucci/jwt is a framework-agnostic PHP library for issuing, parsing and validating JSON Web Tokens, based on RFC 7519. It signs and verifies tokens with HMAC (HS256, HS384, HS512), RSA (RS256 to RS512), ECDSA (ES256 to ES512) and EdDSA, plus a keyed BLAKE2b signer, with RSASSA-PSS in a separate package. It's installed from Packagist with Composer.
Problems it solves
- issue and verify JWTs in a PHP application
- validate a JSON Web Token's signature and claims in PHP
- sign API tokens with RSA or ECDSA keys in PHP
Features
- framework-agnostic: no framework dependency
- HMAC, RSA, ECDSA and EdDSA signers, plus keyed BLAKE2b
- issue, parse and validate tokens
- guides for extending the library and rotating keys
Limitations
- Signs and verifies tokens only: encryption (JWE) isn't supported yet.1
Alternatives
The same job
These do what lcobucci/jwt does.
