mirarus/bmvc-core

Mirarus BMVC Core (Basic MVC Core)


README

Mirarus BMVC Core (Basic MVC Core)

Packagist PHP Version Support Packagist Version Packagist Downloads Packagist License PHP Composer

Libraries: BMVC Libs

Installation

Install using composer:

composer require mirarus/bmvc-core

Example

Install using composer:

<?php

	require_once __DIR__ . '/vendor/autoload.php';

	use BMVC\Core\{App, Route, Controller};
	use BMVC\Libs\{MError, Benchmark};

	class Main
	{
		function index() {
			echo "[Main::index]";
		}
	}

	Route::any('/', function () {
		Controller::call('main@index');
		MError::color("info")::print("Benchmark", "Memory Usage: " . Benchmark::memory());
	});

	App::Run([
	'init' => [
	//BMVC\Core\Model::class
	]
]);
?>

License

Licensed under the MIT license, see LICENSE