Skip to content
An Encoder for the LexikJWTAuthenticationBundle that uses web-token/jwt-framework
Branch: v2.1
Clone or download
Latest commit 19e290e Jun 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create FUNDING.yml Jun 23, 2019
Checker Key ID Support (#35) Jan 9, 2018
DependencyInjection Mandatory claims (#46) Jun 3, 2019
Encoder Mandatory claims (#46) Jun 3, 2019
Features
Resources Mandatory claims (#46) Jun 3, 2019
Tests Mandatory claims (#46) Jun 3, 2019
.gitattributes First release Jul 8, 2016
.gitignore Exclude vendor related files from VCS Jul 9, 2016
.scrutinizer.yml Update .scrutinizer.yml Jul 21, 2016
.travis.yml V2.0 (#26) Dec 4, 2017
LICENSE Requirement checker (#22) Feb 14, 2017
README.md
SpomkyLabsLexikJoseBundle.php Key ID Support (#35) Jan 9, 2018
behat.yml First release Jul 8, 2016
composer.json Update composer.json Jul 10, 2018

README.md

Jose Bridge for the LexikJWTAuthenticationBundle

Build Status Scrutinizer Code Quality

SensioLabsInsight

Latest Stable Version Total Downloads Latest Unstable Version License

This Symfony Bundle provides a JWT Encoder for the LexikJWTAuthenticationBundle that uses the web-token/jwt-framework as JWT Creator/Loader.

The Release Process

The release process is described here.

Prerequisites

This library needs at least:

  • PHP 7.1+
  • Symfony 3.3+ or 4.0+.

Continuous Integration

It has been successfully tested using PHP 7.1 and PHP 7.2 and nightly.

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.

Installation

Symfony Flex

The preferred way to install this bundle is to rely on Symfony Flex:

composer req "spomky-labs/lexik-jose-bridge:^2.0"

Manual Installation

If you do not use Symfony Flex, then use Composer and install the bundle manually.

composer require spomky-labs/lexik-jose-bridge

Then, add this bundle and the web-token/jwt-framework bundles into your kernel:

<?php

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

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            ...
            new Jose\Bundle\JoseFramework\JoseFrameworkBundle(),
            new SpomkyLabs\LexikJoseBundle\SpomkyLabsLexikJoseBundle(),
        ];

        return $bundles;
    }
}

Configuration

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

How to use

There is nothing to do. Just use your application as usual.

Support

I bring solutions to your problems and answer your questions.

If you really love that project and the work I have done or if you want I prioritize your issues, then you can help me out for a couple of 🍻 or more!

Become a Patreon

Contributing

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

Licence

This software is release under MIT licence.

You can’t perform that action at this time.