An API Boilerplate to create a ready-to-use REST API in seconds with Symfony 5
$ composer create-project tony133/symfony5-api-boilerplate-jwt myProject
$ mkdir config/jwt
$ openssl genrsa -out config/jwt/private.pem -aes256 4096
$ openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem
$ curl -H 'content-type: application/json' -v -X POST http://127.0.0.1:8000/api/token -H 'Authorization:Basic username:password'
$ curl -H 'content-type: application/json' -v -X POST -d '{"name": "tony", "surname": "master", "email": "tony_admin@symfony.com", "username":"tony_admin", "password": "admin"}' http://127.0.0.1:8000/api/register
$ curl -H 'content-type: application/json' -v POST -d '{"email": "tony_admin@symfony.com"}' http://127.0.0.1:8000/api/forgot
$ curl -H 'content-type: application/json' -v POST -d '{"email": "tony_admin@symfony.com", "password":"admin"}' http://127.0.0.1:8000/api/change
$ php bin/phpunit or ./bin/phpunit