jerryhopper/easy-jwt-php

easy jwt decoder using .well-known service discovery

Installs: 71

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/jerryhopper/easy-jwt-php

0.0.7 2020-12-23 15:31 UTC

This package is auto-updated.

Last update: 2025-09-24 03:37:37 UTC


README

Build Status

easy-jwt-php

Absurdly simple jwt decoder/verifier using .well-known service discovery oauth/openid spec.

.

Installation

composer require jerryhopper/service-discovery-php

.

Usage

$token = the obtained JWT token.

$discoveryUrl = the location of the openid discovery information.

(Example: https://fusionauth:9011/.well-known/openid-configuration )

use JerryHopper\EasyJwt;

$jwtPayloadData = new Decode($token,$discoveryUrl);

The result is either a Exception, or the decoded JWT object.

.

Advanced usage

$issuer = false; // Issuer check. False or String.

$audience = false; // Audience check. False or String.

use JerryHopper\EasyJwt;

$jwtPayloadData = new Decode($token,$discoveryUrl,$audience,$issuer);

.

This library is for PHP7.2 ++