1. Go to this page and download the library: Download zemistr/notorm-tracy-panel 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/ */
zemistr / notorm-tracy-panel example snippets
NotOrmTracyPanel::simpleInit($notorm, $pdo);
NotOrmTracyPanel::simpleInit($notorm);
$panel = NotOrmTracyPanel::getInstance(); // or new NotOrmTracyPanel()
\Tracy\Debugger::getBar()->addPanel($panel);
$notorm->debug = function($query, $parameters) {
NotOrmTracyPanel::getInstance()->logQuery($query, $parameters);
};
$panel = NotOrmTracyPanel::getInstance(); // or new NotOrmTracyPanel()
\Tracy\Debugger::getBar()->addPanel($panel);
$notorm->debug = function($query, $parameters) {
$instance = NotOrmTracyPanel::getInstance();
$instance->logQuery($query, $parameters);
$instance->startQueryTimer($instance->getIndex());
};
$notorm->debugTimer = function () {
$instance = NotOrmTracyPanel::getInstance();
$instance->stopQueryTimer($instance->getIndex());
};