achertovsky / lib-jwt
There is no license information available for the latest version (4.0.0) of this package.
JWT POPO library
4.0.0
2024-07-13 13:25 UTC
Requires
- php: ^8.3
- psr/clock: ^1.0
Requires (Dev)
- phpmd/phpmd: @stable
- phpstan/phpstan: @stable
- phpunit/phpunit: ^11
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 coverage
docker run --rm -it -u $(id -u):$(id -g) -w /tmp -v ${PWD}:/tmp lib-jwt php -d pcov.enabled=1 -d pcov.directory=/tmp vendor/bin/phpunit --coverage-text
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