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' 3 months ago
public Fixed namespace 6 months ago
src Update 'src/Views/Main/MainView.php' 5 months ago
.gitignore Update gitignore 6 months ago
LICENSE Initial commit 7 months ago
README.md Update 'README.md' 3 months ago
composer.json Fixed namespace 6 months ago
gulpfile.js Update to gulp v4 5 months ago
package.json Initial commit 7 months ago

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