PHPackages                             lexik/jwt-authentication-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. lexik/jwt-authentication-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

lexik/jwt-authentication-bundle
===============================

This bundle provides JWT authentication for your Symfony REST API

v3.2.0(4mo ago)2.6k58.7M—2.9%618[99 issues](https://github.com/lexik/LexikJWTAuthenticationBundle/issues)[16 PRs](https://github.com/lexik/LexikJWTAuthenticationBundle/pulls)20MITPHPPHP &gt;=8.2CI passing

Since May 16Pushed 1mo ago52 watchersCompare

[ Source](https://github.com/lexik/LexikJWTAuthenticationBundle)[ Packagist](https://packagist.org/packages/lexik/jwt-authentication-bundle)[ Docs](https://github.com/lexik/LexikJWTAuthenticationBundle)[ GitHub Sponsors](https://github.com/chalasr)[ Fund](https://tidelift.com/funding/github/packagist/lexik/jwt-authentication-bundle)[ RSS](/packages/lexik-jwt-authentication-bundle/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (21)Versions (96)Used By (20)Security (2)

LexikJWTAuthenticationBundle
============================

[](#lexikjwtauthenticationbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/322eddcb7a308a8c93fa62473addbabe6fad758a18d470e97fb2a6463f5dad87/68747470733a2f2f706f7365722e707567782e6f72672f6c6578696b2f6a77742d61757468656e7469636174696f6e2d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/lexik/jwt-authentication-bundle)

This bundle provides JWT (Json Web Token) authentication for your Symfony API.

It is compatible (and tested) with PHP &gt; 8.2 and Symfony &gt; 6.4 up to 8.

Documentation
-------------

[](#documentation)

The bulk of the documentation is stored in the [`Resources/doc`](Resources/doc/index.rst) directory of this bundle:

- [Getting started](Resources/doc/index.rst#getting-started)
    - [Prerequisites](Resources/doc/index.rst#prerequisites)
    - [Installation](Resources/doc/index.rst#installation)
    - [Configuration](Resources/doc/index.rst#configuration)
    - [Usage](Resources/doc/index.rst#usage)
    - [Notes](Resources/doc/index.rst#notes)
- [Further documentation](Resources/doc/index.rst#further-documentation)
    - [Configuration reference](Resources/doc/1-configuration-reference.rst)
    - [Data customization and validation](Resources/doc/2-data-customization.rst)
    - [Functional testing](Resources/doc/3-functional-testing.rst)
    - [Working with CORS requests](Resources/doc/4-cors-requests.rst)
    - [JWT encoder service customization](Resources/doc/5-encoder-service.rst)
    - [Extending Authenticator](Resources/doc/6-extending-jwt-authenticator.rst)
    - [Creating JWT tokens programmatically](Resources/doc/7-manual-token-creation.rst)
    - [A database-less user provider](Resources/doc/8-jwt-user-provider.rst)
    - [Accessing the authenticated JWT token](Resources/doc/9-access-authenticated-jwt-token.rst)
    - [Invalidate token on logout](Resources/doc/11-invalidate-token.rst)

Community Support
-----------------

[](#community-support)

Please consider [opening a question on StackOverflow](http://stackoverflow.com/questions/ask) using the [`lexikjwtauthbundle` tag](http://stackoverflow.com/questions/tagged/lexikjwtauthbundle), it is the official support platform for this bundle.

Github Issues are dedicated to bug reports and feature requests.

Contributing
------------

[](#contributing)

See the [CONTRIBUTING](CONTRIBUTING.md) file.

Sponsoring
----------

[](#sponsoring)

Huge thanks to [Blackfire](https://blackfire.io) and [JetBrains](https://jetbrains.com) for providing this project with free open-source licenses.

[![Blackfire](https://user-images.githubusercontent.com/7502063/178457752-520de30a-a2bc-4529-983b-6a3ff4f76045.png)](https://blackfire.io)

If you or your company use this package, please consider [sponsoring its maintenance and development](https://github.com/sponsors/chalasr).

Upgrading from 1.x
------------------

[](#upgrading-from-1x)

Please see the [UPGRADE](UPGRADE-2.0.md) file.

Credits
-------

[](#credits)

- [Robin Chalas](https://github.com/chalasr)
- Lexik
- [All contributors](https://github.com/lexik/LexikJWTAuthenticationBundle/graphs/contributors)

License
-------

[](#license)

This bundle is under the MIT license.
For the whole copyright, see the [LICENSE](LICENSE) file distributed with this source code.

###  Health Score

81

—

ExcellentBetter than 100% of packages

Maintenance82

Actively maintained with recent releases

Popularity80

Widely adopted with strong download metrics

Community57

Growing community involvement

Maturity92

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 76.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~45 days

Recently: every ~148 days

Total

96

Last Release

92d ago

Major Versions

v1.7.1 → v2.0.02016-10-16

1.x-dev → v2.4.12017-06-29

v2.21.0 → v3.0.02024-05-05

2.x-dev → v3.1.12025-01-06

PHP version history (7 changes)v1.0.0PHP &gt;=5.3.3

v1.4.0PHP &gt;=5.4.8

v2.0.0PHP ^5.5|^7.0

v2.8.0PHP ^5.6|^7.0

v2.10.0PHP &gt;=5.6

v2.11.0PHP &gt;=7.1

v3.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/c95b430ba2ad6164d8daffdad2ff923dc92bd55a7d5559cb07adf035a543a761?d=identicon)[gilles31](/maintainers/gilles31)

![](https://www.gravatar.com/avatar/7a3c2cd4b61f092c2b409f40014e0ac4bacc861550447db4376f60cbe24ae60b?d=identicon)[chalasr](/maintainers/chalasr)

---

Top Contributors

[![chalasr](https://avatars.githubusercontent.com/u/7502063?v=4)](https://github.com/chalasr "chalasr (590 commits)")[![slashfan](https://avatars.githubusercontent.com/u/1168500?v=4)](https://github.com/slashfan "slashfan (73 commits)")[![Spomky](https://avatars.githubusercontent.com/u/1091072?v=4)](https://github.com/Spomky "Spomky (26 commits)")[![maxhelias](https://avatars.githubusercontent.com/u/12966574?v=4)](https://github.com/maxhelias "maxhelias (10 commits)")[![tcardonne](https://avatars.githubusercontent.com/u/2379631?v=4)](https://github.com/tcardonne "tcardonne (5 commits)")[![gfreeau](https://avatars.githubusercontent.com/u/1403669?v=4)](https://github.com/gfreeau "gfreeau (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![quentin-st](https://avatars.githubusercontent.com/u/1551971?v=4)](https://github.com/quentin-st "quentin-st (4 commits)")[![mbabker](https://avatars.githubusercontent.com/u/368545?v=4)](https://github.com/mbabker "mbabker (4 commits)")[![VincentLanglet](https://avatars.githubusercontent.com/u/9052536?v=4)](https://github.com/VincentLanglet "VincentLanglet (3 commits)")[![Chris8934](https://avatars.githubusercontent.com/u/44963939?v=4)](https://github.com/Chris8934 "Chris8934 (3 commits)")[![EmmanuelVella](https://avatars.githubusercontent.com/u/663607?v=4)](https://github.com/EmmanuelVella "EmmanuelVella (3 commits)")[![endroid](https://avatars.githubusercontent.com/u/537253?v=4)](https://github.com/endroid "endroid (3 commits)")[![javiereguiluz](https://avatars.githubusercontent.com/u/73419?v=4)](https://github.com/javiereguiluz "javiereguiluz (3 commits)")[![sroze](https://avatars.githubusercontent.com/u/804625?v=4)](https://github.com/sroze "sroze (3 commits)")[![alborq](https://avatars.githubusercontent.com/u/937312?v=4)](https://github.com/alborq "alborq (3 commits)")[![fracsi](https://avatars.githubusercontent.com/u/690307?v=4)](https://github.com/fracsi "fracsi (2 commits)")[![ogizanagi](https://avatars.githubusercontent.com/u/2211145?v=4)](https://github.com/ogizanagi "ogizanagi (2 commits)")[![Oliboy50](https://avatars.githubusercontent.com/u/2571084?v=4)](https://github.com/Oliboy50 "Oliboy50 (2 commits)")[![patrickjDE](https://avatars.githubusercontent.com/u/6651001?v=4)](https://github.com/patrickjDE "patrickjDE (2 commits)")

---

Tags

authenticationjwtphpsymfonysymfony-bundlejwtapisymfonybundlerestJWSAuthentication

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/lexik-jwt-authentication-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/lexik-jwt-authentication-bundle/health.svg)](https://phpackages.com/packages/lexik-jwt-authentication-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M236](/packages/api-platform-core)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
