nixklai / envelopes
There is no license information available for the latest version (dev-master) of this package.
Wrapper classes for JSON web token
dev-master
2020-09-19 07:40 UTC
Requires
- php: ~5.6.0
- spomky-labs/jose: ~6.1.7
Requires (Dev)
- phpunit/php-code-coverage: ^4.0.8
- phpunit/phpunit: ^5.7.20
This package is auto-updated.
Last update: 2025-03-19 17:31:14 UTC
README
Why Envelop
?
It is because I am lazy, and working with JWT (JWS and JWE) is somewhat challenging.
How?
How to make a JSON Web Signature token?
Just create a ClearEnvelop
reader
use Envelopes\Sealers\ClearEnvelop; $envelop = new ClearEnvelop(); $envelop->setIssuer('Alice') ->setAudience('Bob') ->setExpireIn(60) // Expire in next 60 seconds ->setJWTID(time()); echo $envelop->seal(); // Seal up the envelop and done!