A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to RFC 7519. Use composer to manage your dependencies and download PHP-JWT. Optionally, install the paragonie/sodium_compat package from composer if your php is < 7.2 or does not have libsodium installed. If your private key contains \n characters, be sure to wrap it in double quotes "" and not single quotes '' in order to properly interpret the escaped characters. You must specify supported algorithms for your application. You can add a leeway to account for when there is a clock skew times between the signing and verifying servers. It is recommended that this leeway should not be bigger than a few minutes.
Features
- Support RS384 and RS512
- Detect invalid Base64 encoding in signature
- Support for late static binding
- Require a non-empty key to decode and verify a JWT
- Run the tests using phpunit
Categories
Package ManagersLicense
BSD LicenseFollow PHP-JWT
Other Useful Business Software
Airlock Digital - Application Control (Allowlisting) Made Simple
For organizations seeking the most effective way to prevent malware and ransomware in their environments. It has been designed to provide scalable, efficient endpoint security for organizations with even the most diverse architectures and rigorous compliance requirements. Built by practitioners for the world’s largest and most secure organizations, Airlock Digital delivers precision Application Control & Allowlisting for the modern enterprise.
Rate This Project
Login To Rate This Project
User Reviews
-
good