A simple MVC web app skeleton
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Martins Eglitis a44e0a7aa1 Update 'README.md' 2 年之前
public Fixed namespace 2 年之前
src Update 'src/Views/Main/MainView.php' 2 年之前
.gitignore Update gitignore 2 年之前
LICENSE Initial commit 3 年之前
README.md Update 'README.md' 2 年之前
composer.json Fixed namespace 2 年之前
gulpfile.js Update to gulp v4 2 年之前
package.json Initial commit 3 年之前

README.md

skeleton

A simple MVC skeleton for php apps.

Requirements

  • php >= 5.6
  • composer
  • npm, optionally
  • gulp, optionally

Installation

When inside the project directory

  • Run composer install
  • Create a config file named Main.php under src/Config/ which contains lines like (set development to false to disable development mode)
<?php

return [
	"fqdn" => "/",
	"development" => true,
	"callable" => function($exception, $inspector, $run) {
		http_response_code($exception->getCode());
		echo "Some error.";

		exit;
	}
];
  • Run npm install, optionally
  • Run gulp, optionally