A simple MVC web app skeleton
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
Martins Eglitis a44e0a7aa1 Update 'README.md' 2 lat temu
public Fixed namespace 2 lat temu
src Update 'src/Views/Main/MainView.php' 2 lat temu
.gitignore Update gitignore 2 lat temu
LICENSE Initial commit 3 lat temu
README.md Update 'README.md' 2 lat temu
composer.json Fixed namespace 2 lat temu
gulpfile.js Update to gulp v4 2 lat temu
package.json Initial commit 3 lat temu

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