php-jwt:JWT(JSON Web Token)生成器、解析器、验证器和验证器的 PHP 实现

时间:2021-05-29 15:18:54
【文件属性】:
文件名称:php-jwt:JWT(JSON Web Token)生成器、解析器、验证器和验证器的 PHP 实现
文件大小:52KB
文件格式:ZIP
更新时间:2021-05-29 15:18:54
php jwt jose php-jwt json-web-token PHP-JWT PHP-JWT 是一个用 PHP 编程语言编写的包,用于编码(生成)、解码(解析)、验证和验证 JWT(JSON Web 令牌)。 它提供了一个流畅、易于使用和面向对象的界面。 由确认。 文档 版本号 2.xx (LTS) 1.xx(不支持) JWT是什么? 如果您不熟悉JWT,则可以阅读或 安装 使用以下命令将包添加到 Composer 依赖项: composer require miladrahimi/php-jwt " 2.* " 简单的例子 以下示例展示了如何生成 JWT 并使用HS256算法对其进行解析。 use MiladRahimi \ Jwt \ Generator ; use MiladRahimi \ Jwt \ Parser ; use MiladRahimi \ Jwt \ Cryptography \ Algorithms \ Hma
【文件预览】:
php-jwt-master
----src()
--------Cryptography()
--------Enums()
--------Validator()
--------Base64()
--------Json()
--------Exceptions()
--------Parser.php(5KB)
--------Generator.php(3KB)
----.travis.yml(487B)
----LICENSE(1KB)
----phpunit.xml(562B)
----test.sh(72B)
----README.md(8KB)
----resources()
--------test()
----tests()
--------Cryptography()
--------TestCase.php(2KB)
--------Validator()
--------Base64()
--------ParserTest.php(4KB)
--------Json()
--------GeneratorTest.php(1KB)
--------ExamplesTest.php(3KB)
----.gitignore(47B)
----composer.json(742B)

网友评论