- NPM
- PHP
This repository is a simple PHP MVC structure from scratch with NW.js.
It uses some cool vendors/libraries such as FastRouter (fast request php router), Twig, PHP_CodeSniffer and so on. For this one, just a simple example where users can chose one of their databases and see tables in it.
- Clone the repos from Github.
- Run
composer install
. - Configure app/db.php with your DB parameters.
- Run a server on index.php with
php -S localhost:8000 -t public/
. - Test on your localhost default URL :
localhost:8000
or start with NW.js. - To install NW.js, run
npm install
and start nw's bin with./node_modules/nw/bin/nw
. - From this starter kit, create your own web application.
- Run in a term
./server_run.sh
. - Run in another tem
./nw_run.sh
. - From this starter kit, create your own web application.