Bridge to allow the use of the Spomky-Labs Jose Bundle with the Lexik JWT Authentication Bundle


Build Status Scrutinizer Code Quality

HHVM Status PHP 7 ready


Latest Stable Version Total Downloads Latest Unstable Version License

This Symfony Bundle provides a JWT Encoder for the LexikJWTAuthenticationBundle that uses the Spomky-Labs/JoseBundle as JWT Creator/Loader.

The Release Process

The release process is described here.


This library needs at least:

  • PHP 5.6+
  • Symfony 2.8+ or Symfony 3.0+

Continuous Integration

It has been successfully tested using PHP 5.6, PHP 7 and HHVM on Symfony 2.8, 3.0 and 3.1.

We also track bugs and code quality using Scrutinizer-CI and Sensio Insight.

Coding Standards are verified by StyleCI.

Code coverage is not performed, but Behavior driven development (BDD) is used to test this bundle.


The preferred way to install this bundle is to rely on Composer:

composer require spomky-labs/lexik-jose-bridge

Then, add this bundle and the Spomky-Labs/JoseBundle into your kernel:


use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;

class AppKernel extends Kernel
    public function registerBundles()
        $bundles = [
            new SpomkyLabs\JoseBundle\SpomkyLabsJoseBundle(),
            new SpomkyLabs\LexikJoseBundle\SpomkyLabsLexikJoseBundle(),

        return $bundles;


This bundle needs to be configured. Please see this page to know how to configure it.

How to use

Have a look at this page to know how to use this bundle.


Requests for new features, bug fixes and all other ideas to make this library useful are welcome. Please follow these best practices.


This software is release under MIT licence.