semhoun / slim-skeleton-mvc
Simple Slim Framework 4 skeleton with Twig, Monolog, Doctrine in Sqlite.
Installs: 1 192
Dependents: 0
Suggesters: 0
Security: 0
Stars: 81
Watchers: 6
Forks: 13
Open Issues: 0
Type:project
Requires
- php: ^8.0
- ext-json: *
- ext-sqlite3: *
- akrabat/proxy-detection-middleware: ^1.0
- doctrine/dbal: ^4
- doctrine/migrations: ^3
- doctrine/orm: ^3
- monolog/monolog: ^3.6
- php-di/slim-bridge: ^3.4
- slim/psr7: ^1.7
- slim/slim: ^4.14
- slim/twig-view: ^3.4
- symfony/cache: ^7
- symfony/console: ^6.0
Requires (Dev)
- nunomaduro/phpinsights: ^2.11
- rector/rector: ^1.1
- semhoun/slim-tracy: ^1.0
README
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
Prepare
- Create your project:
composer create-project semhoun/slim-skeleton-mvc [your-app]
- Create database (inside your-app):
./console.php migrations:migrate
Run it:
cd [your-app]
php -S 0.0.0.0:8888 -t public/
- Browse to http://localhost:8888
Notice
- Set
var
folder permission to writable when deploy to production environment - Default login/password is admin/admin