smarcet / jose4php
JWT, JWS, JWE, JWA and JWK implementation in PHP
Installs: 15 224
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 2
Open Issues: 1
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-10-28 19:44:54 UTC
README
JSON Web Token (JWT)/JSON Web Signature (JWS)/JSON Web Key (JWK)/JSON Web Encryption (JWE)/JSON Web Algorithms (JWA) Implementation
* 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
Prerequisites
* LAMP/LEMP environment
* PHP >= 7.2
* composer (https://getcomposer.org/)
Install
run following commands on root folder
* curl -s https://getcomposer.org/installer | php
* php composer.phar install --prefer-dist
* php composer.phar dump-autoload --optimize
* phpunit --bootstrap vendor/autoload.php