定制 vakata/jwt 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vakata/jwt

最新稳定版本:4.0.1

Composer 安装命令:

composer require vakata/jwt

包简介

JWT token handling

关键字:

README 文档

README

Latest Version on Packagist Software License Build Status Code Climate Tests Coverage

JWT token handling.

Install

Via Composer

$ composer require vakata/jwt

Usage

$token = new \vakata\jwt\JWT();
$token
    ->setClaim("key", "value")
    ->setExpiration("+30 days")
    ->setIssuer("System")
    ->sign("secretKey");

$stringified = (string)$token;
$parsed = \vakata\jwt\JWT::fromString($stringified);
var_dump($parsed->isValid()); // true
var_dump($parsed->isSigned()); // true
var_dump($parsed->verifyHash("secretKey")); // true
var_dump($parsed->getClaim("key")); // "value"

Read more in the API docs

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email github@vakata.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 5.64k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-07