PHP code example of canteen / profiler
1. Go to this page and download the library: Download canteen/profiler 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/ */
canteen / profiler example snippets
use Canteen\Profiler\Profiler;
// Create the profiler
$profiler = new Profiler();
$profiler->start('Some Task');
// bunch of code here!
$profiler->end('Some Task');
// Render the profiler onto your page
echo $profiler->render();