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
- Doctrine as ORM
- Twig as template engine
- Monolog
- Symfony Console
- Proxy Detection
- PHP Insights and Rector for code quality
- Create your project:
composer create-project semhoun/slim-skeleton-mvc [your-app]
- Create database (inside your-app):
./console.php migrations:migrate
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 - Default login/password is admin/admin