smarcet / jose4php
JWT, JWS, JWE, JWA and JWK implementation in PHP
2.0.0
2025-06-05 15:06 UTC
Requires
- php: ^8.3
- phpseclib/phpseclib: 3.0.43
- phpseclib/phpseclib2_compat: 1.0.6
Requires (Dev)
- mockery/mockery: ^1.6
- phpunit/phpunit: ^9.0|^10.0|^11.0
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
- dev-master
- 2.0.0
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.1
- 1.0.0
- dev-feature/remove-phpseclib2-compat-dep
- dev-feat/migrate-2-phpseclib-3-x
- dev-feature/php8.3
- dev-feature/php7.2-migration
- dev-scrutinizer-patch-3
- dev-scrutinizer-patch-2
- dev-scrutinizer-patch-1
This package is auto-updated.
Last update: 2026-03-24 04:44:44 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
* vendor/bin/phpunit --bootstrap vendor/autoload.php