- Установка зависимостей проекта через терминал
$ composer install
- Создание jwt хэш ( jwt hash ) через терминал :
$ mkdir -p config/jwt
$ openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
$ openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout
Resources :
- https://symfony.com/bundles/LexikJWTAuthenticationBundle/current/index.html
- https://symfony.com/bundles/NelmioApiDocBundle/current/index.html
Packages :
$ composer require lexik/jwt-authentication-bundle
$ composer require nelmio/api-doc-bundle