1. Go to this page and download the library: Download chabiselx/debuggertools 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/ */
chabiselx / debuggertools example snippets
use DebuggerTools\Logger;
$logger = new Logger($ArrayOfOption);
$logger->logger($dataToLog);
use DebuggerTools\TimeMonitor;
$time = new TimeMonitor($ArrayOfOption);
$time->set("label");
sleep(5);
$time->log("label");
use DebuggerTools\MemoryMonitor;
$memoryMonitor = new MemoryMonitor($ArrayOfOption);
$memoryMonitor->logMemoryUsage('label');
//function
$memoryMonitor->logMemoryUsage('label');
use DebuggerTools\Trace;
$trace = new Trace($ArrayOfOption);
$trace->logTrace();