Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 879 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 879 Bytes

Simple MVC

Description

This repository is a simple PHP MVC structure from scratch.

It uses some cool vendors/libraries such as FastRouter (fast request php router), Twig and PHP_CodeSniffer soon. For this one, just a simple example where users can chose one of their databases and see tables in it.

Steps

  1. Clone the repos from Github.
  2. Run composer install.
  3. Create app/db.php from app/db.php.dist file and add your DB parameters.
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');
  1. Go to public/ directory and run a server on index.php with php -S localhost:8000.
  2. Test on your localhost default URL : localhost:8000.
  3. From this starter kit, create your own web application.

03/07/2018 @wildcodeschool.fr