Registry / auth / web-token-jwt-library

web-token-jwt-library

JSON →
library4.1.7phppackagistunverified

JWT library

composer require web-token/jwt-library
INSTALL
IMPORT
SIG · WEB-TOKEN-JWT-LIBR
W
web-token-jwt-library
authphpv4.1.7
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.

JWT
use WebToken\JWT\JWT;

Encode a simple JWT with HS256

use WebToken\JWT\JWT; $jwt = JWT::encode(['sub' => '123'], 'secret', 'HS256'); echo $jwt;
Debug
Known issues
breakingBreaking changes in version 4.0.0: namespace changed from Jose\Component to WebToken
fix
Update all use statements to WebToken\ namespace
affects: >=4.0.0
Upgrade
Version history
4.1.7latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
43 hits · last 30 days
node
40
Resources
web-token-jwt-library — pip install web-token-jwt-library · libregistry