Use this skeleton application to quickly setup and start working on a new Slim Framework 3 application. This application uses the latest Slim 3 with the PHP-View template renderer. It also uses the Monolog logger.
This skeleton application was built for Composer. This makes setting up a new Slim Framework application quick and easy.
To run the application in development, you can run these commands
composer start
Or you can copy or move these folder to htdocs (on windows) or /var/www/html (on Linux) and open with your web browser to this address
localhost/[your folder name]/public
based on : https://www.petanikode.com/slim-api/ (with modification in middleware)
Noted : You must run composer update to generate vendor folder