mirarus / bmvc-core
Mirarus BMVC Core (Basic MVC Core)
2.0.0
2025-01-13 18:52 UTC
Requires
- php: ^7.3 || ^8.0
- ext-gettext: *
- ext-intl: *
- ext-json: *
- ext-mbstring: *
- mirarus/bmvc-libs: 0.*
This package is auto-updated.
Last update: 2026-06-13 22:17:43 UTC
README
Mirarus BMVC Core (Basic MVC Core)
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