kampfcaspar / jwt
JWT PHP library abstraction layer
v0.4.1
2023-12-09 20:45 UTC
Requires
- php: ^8.1
- ext-json: *
- kampfcaspar/filter: ^0.5
- psr/clock: ^1.0
- psr/log: ^3.0.0
Requires (Dev)
- beste/psr-testlogger: ^1.0.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-phpunit: ^1.3
- phpunit/phpunit: ^10.0
- struggle-for-php/sfp-phpstan-psr-log: ^0.17
This package is auto-updated.
Last update: 2025-03-09 23:15:23 UTC
README
I often have the need to let a program just call an object to encode/decode a payload, without fussing about keys, algorithms etc.
The 'coder' object can be prepared and then given to a consumer that only has to call decode/encode.
This mini interface provides that functionality and can be used for JWS, JWE and Nested Webtoken.
It need an implementation, e.g. for web-token/jwt.