Use this application to quickly setup and start working on a new Slim Framework 3 application. This application uses:
- Slim Framework 3 to create REST API
- Monolog logger to log
- Slim Basic Auth to retrieve Auth Token
- Slim JWT Auth to authenticate on API
- Firebase PHP-JWT to generate tokens
- Point your virtual host document root to your new application's
public/
directory. - Ensure
logs/
is web writeable. - Use
config/dev.config.ini
as model to createconfig/config.ini
.
To first installation, you can run these commands
git clone https://github.com/Ankoul/php-slim-jwt-starter.git [my-app-name]
cd [my-app-name]
php composer.phar install
To run the application in development, you can run these commands
php composer.phar start
Run this command in the application directory to run the test suite
php composer.phar test
That's it! Now go build something cool.