codes50 / slim-framework-4-jwt-auth-example
Slim Framework v4 JWT Auth Example
0.1
2019-12-20 06:01 UTC
Requires
- php: >=7.2
- ext-json: *
- codes50/validation: ^1.3
- firebase/php-jwt: ^5.0
- monolog/monolog: ^1.24
- php-di/php-di: ^6.0
- slim/psr7: ^0.5
- slim/slim: ^4.1
- tuupola/slim-jwt-auth: ^3.4
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-10-22 17:47:24 UTC
README
Requires
- php: >=7.2
- codes50/validation
- firebase/php-jwt
- tuupola/slim-jwt-auth
Install
Install latest version using composer.
$ composer create-project codes50/slim-framework-4-jwt-auth-example [my-app-name]
Replace [my-app-name]
with the desired directory name for your new application. You'll want to:
- Point your virtual host document root to your new application's
public/
directory. - Ensure
logs/
is web writable.
To run the application in development, you can run these commands
cd [my-app-name]
composer start
Or you can use docker-compose
to run the app with docker
, so you can run these commands:
cd [my-app-name]
docker-compose up -d
After that, open http://localhost:8080
in your browser.
Run this command in the application directory to run the test suite
composer test
That's it! Now go build something cool.