sergeybrook / php-jws
JSON Web Signature (JWS) library for PHP
Installs: 1 193
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=7.0
- ext-json: *
- ext-openssl: *
This package is auto-updated.
Last update: 2025-06-21 07:20:22 UTC
README
JSON Web Signature (JWS) library for PHP
There are two signing algorithms implemented:
- Class JwsMac: For HMAC signature using SHA-256, SHA-384 or SHA-512.
- Class JwsRsa: For RSASSA-PKCS1-v1_5 signature using SHA-256, SHA-384 or SHA-512.
Installation:
Using Composer:
$ composer require sergeybrook/php-jws
Or:
- Copy "src" dir to your project (optionally rename it to whatever you want).
- Require class autoloader (included):
<?php require_once("<src_dir>/autoload.php"); ...
Usage:
See /examples
dir.