Minimum PHP version updated from 5.3.0 to 5.4.0.$decoded = JWT:: decode( $jwt, $publicKey, array( 'RS256')) Įcho " Decode:\n". $jwt = JWT:: encode( $token, $privateKey, 'RS256') Įcho " Encode:\n". * NOTE: This will now be an object instead of an associative array. A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to RFC 7519. $decoded = JWT:: decode( $jwt, $key, array( 'HS256')) A simple library to encode and decode JSON Web Tokens (JWT) in PHP. See * * for a list of spec-compliant algorithms. Autoloader: /usr/share/php/Firebase/JWT/autoload.php 1. ** * IMPORTANT: * You must specify supported algorithms for your application. A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to RFC 7519 1. Use composer to manage your dependencies and download PHP-JWT: composer require fproject/php-jwt Example " ", PHP library to encode and decode JSON Web Tokens (JWT).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |