spomky-labs/lexik-jose-bridge

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


README

Build Status Scrutinizer Code Quality

HHVM Status PHP 7 ready

SensioLabsInsight

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.

Prerequisites

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.

Installation

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:

<?php

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;
    }
}

Configuration

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.

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.