Registry / crypto / namshi-jose

namshi-jose

JSON →
library7.2.3phppackagistunverified

JSON Object Signing and Encryption library for PHP.

composer require namshi/jose
INSTALL
IMPORT
SIG · NAMSHI-JOSE
N
namshi-jose
cryptophpv7.2.3
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.

JWS
use Namshi\JOSE\JWS;

Create and sign a JSON Web Signature (JWS).

use Namshi\JOSE\JWS; $jws = new JWS(['alg' => 'HS256']); $jws->setPayload(['user' => 123]); $jws->sign('secret-key'); echo $jws->getTokenString();
Debug
Known issues
breakingRequires PHP 7.0+; older versions may have security issues.
fix
Upgrade to PHP 7.0 or later.
affects: <7.0
Upgrade
Version history
7.2.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Resources
namshi-jose — pip install namshi-jose · libregistry