# lcobucci/jwt

> Framework-agnostic PHP library to issue, parse and validate JSON Web Tokens

Source: https://talira.ai/catalog/lcobucci-jwt-by7h6zsk
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [security / auth / libraries](https://talira.ai/categories/security/auth/libraries), [languages / php](https://talira.ai/categories/languages/php)
- Licence: BSD-3-Clause[^3]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Supports: [JWT](https://talira.ai/standards/jwt.md)[^4]
- Backed by: [Luís Cobucci](https://talira.ai/orgs/luis-cobucci.md)

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.

## Links

- GitHub: https://github.com/lcobucci/jwt
- Docs: https://lcobucci-jwt.readthedocs.io/en/stable/

## 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]

## Trust

Overall: 0.67 out of 1.
Signals: maintenance 1.00, adoption 0.77, momentum 0.51, community 0.73, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 101 commits in the last 90 days
- latest release 5.7.0 10 days ago
- 7.5k GitHub stars
- 67 contributors
- accepts sponsorship (Github, Patreon)
- backed by Luís Cobucci

## Alternatives

- [PHP-JWT](https://talira.ai/catalog/php-jwt-0479yw0g.md): Encode and decode JSON Web Tokens in PHP
- [jwt-auth](https://talira.ai/catalog/jwt-auth-j3eeh8w4.md): JSON Web Token authentication for Laravel and Lumen

## Sources

[^1]: https://lcobucci-jwt.readthedocs.io/en/stable/supported-algorithms/ (checked 28 Nov 2026)
[^2]: https://lcobucci-jwt.readthedocs.io/en/stable/ (checked 28 Nov 2026)
[^3]: https://github.com/lcobucci/jwt/blob/6.0.x/LICENSE (checked 28 Nov 2026)
[^4]: https://github.com/lcobucci/jwt/blob/6.0.x/README.md (checked 28 Nov 2026)
