代码拉取完成,页面将自动刷新
To build it you need the following requirements:
If you're using Ubuntu, you can install the required packages this way:
sudo apt-get update
sudo apt-get install git gcc make re2c php7 php7-json php7-dev libpcre3-dev
You can build extension and install it like:
git clone https://gitee.com/EricNothing/jwt.git
cd ext
./install
Edit your php.ini
file and add this line:
extension=jwt.so
Don't forget to restart your php-fpm:
sudo service php7-fpm restart
<?php
$key = "example_key";
$token = array(
"iss" => "http://example.org",
"aud" => "http://example.com",
"iat" => 1356999524,
"nbf" => 1357000000
);
$jwt = JWT\Token::encode($token, $key);
$decoded = JWT\Token::decode($jwt, $key, ['HS256']);
print_r($decoded);
JWT\Token::$leeway = 60; // $leeway in seconds
$decoded = JWT\Token::decode($jwt, $key, ['HS256']);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。