monderka / jwt-generator
PHP tool for simple generating JWTokens
1.0.2
2024-03-03 18:10 UTC
Requires
- php: >=8.1
- ext-bcmath: *
- ext-mbstring: *
- web-token/jwt-framework: ^3.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.51
- php-parallel-lint/php-console-color: ^1.0
- php-parallel-lint/php-parallel-lint: ^1.3
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.9
README
Tool for simple generating JWTokens
- Install by composer require monderka/jwt-generator
- Generate key pairs for example (available algos are EdDSA, ES256, ES384, ES512, HS256, HS384, HS512, PS256, PS384, PS512, RS256, RS384)
openssl ecparam -name prime256v1 -genkey -noout -out private-key.pem
openssl ec -in private-key.pem -pubout -out public-key.pem