Example #1
0
<?php

// Get micro
require __DIR__ . '/../micro/Micro.php';
// Get kernel
$app = new \Micro\Micro(__DIR__ . '/../app', __DIR__ . '/../micro');
// Run framework
$app->run(new \Micro\web\Request())->send();
// Kill application
$app->terminate();
Example #2
0
<?php

// Get micro
require __DIR__ . '/micro/Micro.php';
// Get kernel
$app = new \Micro\Micro(__DIR__ . '/app', __DIR__ . '/micro');
// Boot-loader
$app->loader();