A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec. Client - Class Key (7.2.2)
Stay organized with collections
Save and categorize content based on your preferences.
7.2.2 (latest)
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-17 UTC.
[null,null,["Last updated 2026-11-17 UTC."],[],[]]