PHP code example of mirarus / bmvc-core

1. Go to this page and download the library: Download mirarus/bmvc-core library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mirarus / bmvc-core example snippets

bash


	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
	]
]);