A simple MVC web app skeleton
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
Martins Eglitis a44e0a7aa1 Update 'README.md' pirms 2 gadiem
public Fixed namespace pirms 2 gadiem
src Update 'src/Views/Main/MainView.php' pirms 2 gadiem
.gitignore Update gitignore pirms 2 gadiem
LICENSE Initial commit pirms 3 gadiem
README.md Update 'README.md' pirms 2 gadiem
composer.json Fixed namespace pirms 2 gadiem
gulpfile.js Update to gulp v4 pirms 2 gadiem
package.json Initial commit pirms 3 gadiem

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