# lexik/LexikJWTAuthenticationBundle

JWT authentication for your Symfony API

Repository: https://github.com/lexik/LexikJWTAuthenticationBundle
Canonical: https://ross.abutalabs.com/products/lexikjwtauthenticationbundle
Language: PHP
License: MIT
License Family: permissive
Topics: symfony, symfony-bundle, php, jwt, authentication
Last push: 2026-07-01T23:42:25+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 30, longevity 100
- inputs: {"age_days": 4528, "days_push": 63, "days_rel": 256, "gap_med": 348, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2608, forks 616 (observed 2026-08-28T04:07:04.242364+00:00)

## What it is
A Symfony bundle that provides JSON Web Token (JWT) authentication for Symfony APIs. It handles token creation, validation, and integration with Symfony's security system.

## Use cases
- add JWT authentication to a Symfony API
- issue and validate JWT tokens in PHP
- secure REST API endpoints with token auth
- create JWT tokens programmatically in Symfony
- implement stateless authentication for a Symfony app
- invalidate JWT tokens on logout

## When to choose
- you are building an API with Symfony and need stateless token-based authentication
- you want a mature, well-documented JWT solution integrated with Symfony security
- you need programmatic JWT creation or custom token payload handling in Symfony

## When to avoid
- your project does not use the Symfony framework
- you need session-based or OAuth authentication rather than JWT
- you are not on PHP 8.2+ or Symfony 6.4+

## Facets
- artifact type: library
- maturity: stable
- function: auth, security, middleware
- domain: web-development, backend, security, apis
- platform: php, self-hosted
- tags: jwt, symfony-bundle, token-authentication, api-authentication, symfony, web-server

## Member repositories
- lexik/LexikJWTAuthenticationBundle (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:04.242364+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:20:55.602444+00:00, confidence not recorded.
  - readme: https://github.com/lexik/LexikJWTAuthenticationBundle (fetched 2026-08-28T04:07:04.242364+00:00, sha 34d6e71dc117)
- Data as of 2026-08-30T08:39:29.467469+00:00.
