<?php // index.php $start = microtime(true); require_once __DIR__ . '/../vendor/autoload.php'; $app = new \me\adamcameron\misc\app\Application(); $app->run(); $end = microtime(true); $diff = $end - $start; $ms = round($diff * 1000); //echo "Execution duration of request: {$ms}ms";
<?php // cli.php require_once __DIR__ . '/../vendor/autoload.php'; list($_, $method, $path) = $argv; $app = new \me\adamcameron\misc\app\Application(); $request = \Symfony\Component\HttpFoundation\Request::create($path, $method); $app->run($request);