2017 © Pedro Peláez
 

library php-jwt-middleware

PSR-7 compliant middleware to handle incoming JWT's

image

mvdstam/php-jwt-middleware

PSR-7 compliant middleware to handle incoming JWT's

  • Monday, September 4, 2017
  • by Maximized
  • Repository
  • 1 Watchers
  • 1 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHP JWT Middleware

This package allows developers to add simple but powerful middleware to their application which does one thing, and one thing only: validate incoming JWT's., (*1)

Requirements

Goal of this package

This package aims to provide the developer with a PSR-7 compliant HTTP middleware class that ensures the validity and integrity of incoming JWT's. When a JWT is found valid, it is simply added to the request as an attribute. Within the application, the JWT can simply be accessed using the current ServerRequestInterface implementation for your application:, (*2)

class MyController
{
    public function indexAction(ServerRequestInterface $request)
    {
        $jwt = $request->getAttribute('jwt'); // Instance of Lcobucci\JWT\Token 
    }
}

The Versions

04/09 2017

dev-master

9999999-dev

PSR-7 compliant middleware to handle incoming JWT's

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max van der Stam

04/09 2017

1.1.0

1.1.0.0

PSR-7 compliant middleware to handle incoming JWT's

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max van der Stam

03/06 2017

1.0.0

1.0.0.0

PSR-7 compliant middleware to handle incoming JWT's

  Sources   Download

MIT

The Requires

 

The Development Requires

by Max van der Stam