Registry / auth / web-token-jwt-signature

web-token-jwt-signature

JSON →
library4.0.0phppackagistunverified

Signature component of the JWT Framework for creating and verifying JSON Web Signatures.

composer require web-token/jwt-signature
INSTALL
IMPORT
SIG · WEB-TOKEN-JWT-SIGN
W
web-token-jwt-signature
authphpv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JWSBuilder
use WebToken\Component\Signature\JWSBuilder;

Create a signed JWS token using the RS256 algorithm.

use WebToken\Component\Signature\JWSBuilder; use WebToken\Component\Signature\Algorithm\RS256; $builder = new JWSBuilder(); $jws = $builder->create() ->withPayload('{"sub":"1234567890"}') ->addSignature(new RS256(), 'private_key') ->build();
Debug
Known issues
breakingRequires OpenSSL extension for RSA algorithms.
fix
Install and enable the OpenSSL PHP extension.
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
Resources
web-token-jwt-signature — pip install web-token-jwt-signature · libregistry