achertovsky/lib-jwt

There is no license information available for the latest version (3.0.1) of this package.

JWT POPO library

3.0.1 2023-04-30 12:17 UTC

This package is auto-updated.

Last update: 2024-04-05 18:39:52 UTC


README

Lib called to reduce hassle in projects with jwt. Expected to be convenient solution for the purpose.

usage

To check usage cases, please, refer to tests/Service/JwtManagerTest.php, tests/Service/Functional.php. Those tests explain how JwtManager should be used in your application.

Development

install env

docker build -t lib-jwt .
docker run --rm -it -u $(id -u):$(id -g) -w /tmp -v ${PWD}:/tmp lib-jwt composer i

testing

docker run --rm -it -u $(id -u):$(id -g) -w /tmp -v ${PWD}:/tmp lib-jwt vendor/bin/phpunit

testing with xdebugging (xdebug on 9001 by default)

docker run --rm -it --add-host=host.docker.internal:host-gateway -u $(id -u):$(id -g) -w /tmp -v ${PWD}:/tmp lib-jwt vendor/bin/phpunit