1. Go to this page and download the library: Download webware/traccio 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/ */
webware / traccio example snippets
// config/config.php
use Laminas\ConfigAggregator\ConfigAggregator;
use Webware\Traccio\ConfigProvider;
$aggregator = new ConfigAggregator([
ConfigProvider::class,
// ... other providers
]);
use Tracy\Debugger;
return [
'debug' => true,
Debugger::class => [
'dumpTheme' => 'dark', // 'light' or 'dark'
'keysToHide' => [
'password',
'pass',
'secret',
],
// Any public static property of Tracy\Debugger can be set here.
// 'maxDepth' => 10,
// 'maxLength' => 250,
// 'showLocation' => true,
],
];
// config/pipeline.php
use Webware\Traccio\Middleware\RequestPanelMiddleware;
use Webware\Traccio\Middleware\TracyDebuggerMiddleware;
$app->pipe(TracyDebuggerMiddleware::class);
// ... error handler, routing, ...
$app->pipe(RequestPanelMiddleware::class);