PHP code example of cdyun / webman-jwt
1. Go to this page and download the library: Download cdyun/webman-jwt library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cdyun / webman-jwt example snippets
use Cdyun\WebmanJwt\JwtEnforcer;
JwtEnforcer::generateToken($payload);
JwtEnforcer::validateToken($token);
JwtEnforcer::getConfig($name , $default);