/simple-mvc-nwjs

This repository is a simple PHP MVC structure from scratch with NW.js.

Primary LanguagePHP

Simple MVC

Project requirements

  • NPM
  • PHP

Description

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.

Installation

  1. Clone the repos from Github.
  2. Run composer install.
  3. Configure app/db.php with your DB parameters.

Usage

  1. Run a server on index.php with php -S localhost:8000 -t public/.
  2. Test on your localhost default URL : localhost:8000 or start with NW.js.
  3. To install NW.js, run npm install and start nw's bin with ./node_modules/nw/bin/nw.
  4. From this starter kit, create your own web application.

OR

  1. Run in a term ./server_run.sh.
  2. Run in another tem ./nw_run.sh.
  3. From this starter kit, create your own web application.