This repository is a simple PHP MVC structure from scratch.
It uses some cool vendors/libraries such as Twig and Grumphp. For this one, just a simple example where users can choose one of their databases and see tables in it.
composer install
.define('APP_DB_HOST', 'your_db_host');
define('APP_DB_NAME', 'your_db_name');
define('APP_DB_USER', 'your_db_user_wich_is_not_root');
define('APP_DB_PWD', 'your_db_password');
simple-mvc.sql
in your SQL server,php -S localhost:8000 -t public/
. The option -t
with public
as parameter means your localhost will target the /public
folder.localhost:8000
with your favorite browser.If you develop on Windows, you should edit you git configuration to change your end of line rules with this command :
git config --global core.autocrlf true