mirarus/bmvc-core

Mirarus BMVC Core (Basic MVC Core)

0.36 2021-05-06 01:15 UTC

README

Mirarus BMVC Core (Basic MVC Core)

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

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