PHPackages                             spomky-labs/lexik-jose-bridge - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. spomky-labs/lexik-jose-bridge

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

spomky-labs/lexik-jose-bridge
=============================

Bridge to allow the use of web-token/jwt-framework with the Lexik JWT Authentication Bundle

v4.0.0(4y ago)35444.0k↑25.5%15[3 issues](https://github.com/Spomky-Labs/lexik-jose-bridge/issues)[3 PRs](https://github.com/Spomky-Labs/lexik-jose-bridge/pulls)MITPHPPHP &gt;=8.1

Since Oct 16Pushed 2y ago6 watchersCompare

[ Source](https://github.com/Spomky-Labs/lexik-jose-bridge)[ Packagist](https://packagist.org/packages/spomky-labs/lexik-jose-bridge)[ Docs](https://github.com/Spomky-Labs/lexik-jose-bridge)[ GitHub Sponsors](https://github.com/Spomky)[ Patreon](https://www.patreon.com/FlorentMorselli)[ RSS](/packages/spomky-labs-lexik-jose-bridge/feed)WikiDiscussions v4.0 Synced 1mo ago

READMEChangelog (10)Dependencies (35)Versions (28)Used By (0)

Jose Bridge for the LexikJWTAuthenticationBundle
================================================

[](#jose-bridge-for-the-lexikjwtauthenticationbundle)

[![Build Status](https://github.com/Spomky-Labs/lexik-jose-bridge/workflows/Coding%20Standards/badge.svg)](https://github.com/Spomky-Labs/lexik-jose-bridge/workflows/Coding%20Standards/badge.svg)[![Build Status](https://github.com/Spomky-Labs/lexik-jose-bridge/workflows/Static%20Analyze/badge.svg)](https://github.com/Spomky-Labs/lexik-jose-bridge/workflows/Static%20Analyze/badge.svg)[![Build Status](https://github.com/Spomky-Labs/lexik-jose-bridge/workflows/Rector%20Checkstyle/badge.svg)](https://github.com/Spomky-Labs/lexik-jose-bridge/workflows/Rector%20Checkstyle/badge.svg)

[![Build Status](https://github.com/Spomky-Labs/lexik-jose-bridge/workflows/Unit%20and%20Functional%20Tests/badge.svg)](https://github.com/Spomky-Labs/lexik-jose-bridge/workflows/Unit%20and%20Functional%20Tests/badge.svg)

[![Latest Stable Version](https://camo.githubusercontent.com/7b86f27f389b57e2781963e0846493d58ebf81bacc2e042f2bc256c0458a8146/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6c6578696b2d6a6f73652d6272696467652f762f737461626c652e706e67)](https://packagist.org/packages/Spomky-Labs/lexik-jose-bridge)[![Total Downloads](https://camo.githubusercontent.com/b397c43039748ac1e549e3bed50e2de717ba0b03f1aa0bbc0a236d649054ea88/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6c6578696b2d6a6f73652d6272696467652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/Spomky-Labs/lexik-jose-bridge)[![Latest Unstable Version](https://camo.githubusercontent.com/3c1eceb5e64486b8fe4a8529866168e466d454ae4af9ec2a0231889f045fefc0/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6c6578696b2d6a6f73652d6272696467652f762f756e737461626c652e706e67)](https://packagist.org/packages/Spomky-Labs/lexik-jose-bridge)[![License](https://camo.githubusercontent.com/83b9809195579d0e5db2b076aa2b110ff322629b14d2f2d93a18070b1ebb6168/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f6c6578696b2d6a6f73652d6272696467652f6c6963656e73652e706e67)](https://packagist.org/packages/Spomky-Labs/lexik-jose-bridge)

This Symfony Bundle provides a JWT Encoder for the [LexikJWTAuthenticationBundle](https://github.com/lexik/LexikJWTAuthenticationBundle) that uses the [web-token/jwt-framework](https://github.com/web-token/jwt-framework) as JWT Creator/Loader.

The Release Process
===================

[](#the-release-process)

The release process [is described here](Resources/doc/Release.md).

Prerequisites
=============

[](#prerequisites)

This library needs at least:

- PHP 8.1+
- Symfony 6.0+.

Installation
============

[](#installation)

Symfony Flex
------------

[](#symfony-flex)

The preferred way to install this bundle is to rely on Symfony Flex and composer. Before installing the bundle, it is mandatory to declare specific Flex servers into your composer.json file.

```
composer config --json extra.symfony.endpoint '["https://api.github.com/repos/Spomky-Labs/recipes/contents/index.json?ref=main", "flex://defaults"]'
```

Or if you prefer, you can directly update your `composer.json` file.

```
{
    "name": "acme/application",
    "description": "ACME Application",
    "extra": {
        "symfony": {
            "endpoint": [
                "https://api.github.com/repos/Spomky-Labs/recipes/contents/index.json?ref=main",
                "flex://defaults"
            ]
        }
    }
}
```

Then, you can install the bundle. It will be automatically configured with the default configuration.

```
composer require spomky-labs/lexik-jose-bridge
```

Manual Installation
-------------------

[](#manual-installation)

If you do not use Symfony Flex, then use Composer and install the bundle manually. Then, add this bundle and the `web-token/jwt-framework` bundles into your kernel:

```
