smarcet/jose4php

JWT, JWS, JWE, JWA and JWK implementation in PHP

2.0.0 2025-06-05 15:06 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

Build Status Latest Stable Version Total Downloads Latest Unstable Version License Scrutinizer Code Quality

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