PHP code example of vilartoni / stackphp-xhprof
1. Go to this page and download the library: Download vilartoni/stackphp-xhprof 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/ */
vilartoni / stackphp-xhprof example snippets
use Avs\Stack\XhprofMiddleware;
k = (new Stack\Builder())
->push(XhprofMiddleware::class, '/secret/xhprof');
$app = $stack->resolve($app);
$request = Request::createFromGlobals();
$response = $app->handle($request)->send();
$app->terminate($request, $response);