Skip to content

lgdzz/jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Install

composer require lgdz/jwt

Demo

try {

    $jwt = new Jwt('私钥', '公钥');
    
    //签发token
    $jwt->issue($data, 60);
    
    //验证token
    $jwt->check($token);
    
} catch (\Exception $e) {
    var_dump($e->getMessage());
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages