satmaxt / slim-boilerplate
Slim framework boilerplate with MVC mode
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.2.5
- ext-json: *
- illuminate/database: ^6.6
- php-di/slim-bridge: ^3.0
- selective/basepath: ^0.2.0
- slim/php-view: ^2.2
- slim/psr7: ^0.6.0
- slim/slim: ^4.0
Requires (Dev)
- symfony/var-dumper: ^5.0
This package is auto-updated.
Last update: 2025-03-27 13:52:54 UTC
README
A slim framework boilerplate with MVC, ready to use for your project
Features
- Slim v4
- PHP-DI Container
- Eloquent ORM
- MVC
- Symfony Var Dumper
- Dynamic Basepath
Quick Installation
composer create-project --prefer-dist satmaxt/slim-boilerplate stdev
Change stdev
to your project name
Install Dependency
composer install
Configure Database Connection
Open file configs/database.php
return [ 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'yourdbname', 'username' => 'yourdbusername', 'password' => 'yourdbpassword', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ];
and change it with your database information
Deployment
Open file bootstrap/app.php
and find this line:
$app->addErrorMiddleware(true, true, true);
change the first argument to false
and save it.
Install Dependency
composer install --optimize-autoloader --no-dev
License
This bolerplate is licensed under the MIT license. See License File for more information.
Copyright © 2019. Satria Aji Putra