This is a simple web application skeleton project that uses the Slim4 Framework:
- PHP-DI as dependency injection container
- Slim-Psr7 as PSR-7 implementation
- Twig as template engine
- Monolog
- Console
The Slim Twig-View is still in active development and can introduce breaking changes. It is an beta release. Of course you can use this skeleton, but be warned. As soon as you update the Slim Twig-View, you might have to modify your code.
-
Create your project:
clone <this repo> composer install docker-composer up
cd [your-app]
php -S 0.0.0.0:8888 -t public/
- Browse to http://localhost:8888
- Set
var
folder permission to writable when deploy to production environment