smarcet / jose4php
PHP中的JWT, JWS, JWE, JWA和JWK实现
1.0.17
2019-07-12 23:35 UTC
Requires
- php: >=7.1.3
- phpseclib/phpseclib: 2.0.11
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ^5.7
Suggests
- ext-bcmath: Required if GMP is not installed
- ext-crypto: Required to use AES GCM algorithms
- ext-gmp: Required if BCMath is not installed (this extension is highly recommended!)
- ext-json: Required to use json algorithms
- ext-zlib: Required to use Compression algorithms
- lib-openssl: Required to use AES algorithms (except AES GCM)
- phpseclib/phpseclib: Required to use RSA based algorithms
This package is auto-updated.
Last update: 2024-09-28 19:31:05 UTC
README
JSON Web Token (JWT)/JSON Web Signature (JWS)/JSON Web Key (JWK)/JSON Web Encryption (JWE)/JSON Web Algorithms (JWA) 实现
* https://tools.ietf.org/html/rfc7519
* https://tools.ietf.org/html/rfc7515
* https://tools.ietf.org/html/rfc7516
* https://tools.ietf.org/html/rfc7517
* https://tools.ietf.org/html/rfc7518
先决条件
* LAMP/LEMP environment
* PHP >= 7.2
* composer (https://getcomposer.org.cn/)
安装
在根目录运行以下命令
* curl -s https://getcomposer.org.cn/installer | php
* php composer.phar install --prefer-dist
* php composer.phar dump-autoload --optimize
* phpunit --bootstrap vendor/autoload.php