lcobucci/jwt
A simple library to work with JSON Web Token and JSON Web Signature observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 52
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 26
- age_days: 4564
- days_rel: 320
- days_push: 11
- n_releases_24m: 6
Adoption not part of the score
7483 stars · 595 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A PHP library for creating, parsing, and validating JSON Web Tokens (JWT) and JSON Web Signatures (JWS) per RFC 7519. It is installed via Composer and widely used as the JWT foundation in PHP applications and frameworks.
Use cases
- issue and sign JWTs for user authentication
- validate and parse JWTs from incoming API requests
- implement token-based auth in a PHP application
- sign tokens with HMAC, RSA, or ECDSA keys
- handle token claims, expiration, and refresh flows
When to choose
- you need a mature, well-tested JWT library for PHP
- you want fine-grained control over token claims, signing, and validation
- you're building token-based auth for APIs or microservices in PHP
When to avoid
- you need a full authentication framework with sessions and user management
- your project is not PHP-based
- you only need opaque session tokens rather than standards-based JWTs
Facets
library · maturity stable
auth serialization security security web-development backend apis php jwt jws rfc7519 token-generation token-validation composer
1 source
- readme: https://github.com/lcobucci/jwt · fetched 2026-08-28 · 2063302dabe8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lcobucci/jwt | main | 83 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem