A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec. Client - Class Key (7.2.1)

Namespace

Firebase \ JWT

Methods

__construct

Parameters
Name Description
keyMaterial string|OpenSSLAsymmetricKey|OpenSSLCertificate
algorithm string

getAlgorithm

Return the algorithm valid for this key

Returns
Type Description
string

getKeyMaterial

Returns
Type Description
string|OpenSSLAsymmetricKey|OpenSSLCertificate