Skip to content

firebase/php-jwt的改版,使其能在swoole模式下运行

Notifications You must be signed in to change notification settings

luohonen/php-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

php-jwt

use Co\JWT\JWT;

$key = "test_key";
$token = [
"iss" => "https://www.baidu.com",
"aud" => "https://www.qq.com",
"iat" => 1356999524,
"nbf" => 1357000000
];
$jwt = new JWT();
$encode = $jwt->encode($token, $key);
$decode = $jwt->decode($encode, $key, ['HS256']);

print_r($decode);

About

firebase/php-jwt的改版,使其能在swoole模式下运行

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages