Download the PHP package atk14/dbmole-panel without Composer
On this page you can find all versions of the php package atk14/dbmole-panel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download atk14/dbmole-panel
More information about atk14/dbmole-panel
Files in atk14/dbmole-panel
Download atk14/dbmole-panel
More information about atk14/dbmole-panel
Files in atk14/dbmole-panel
Vendor atk14
Package dbmole-panel
Short Description A panel for Tracy Debugger with DbMole statistics
License MIT
Homepage https://github.com/atk14/DbMolePanel
Package dbmole-panel
Short Description A panel for Tracy Debugger with DbMole statistics
License MIT
Homepage https://github.com/atk14/DbMolePanel
Please rate this library. Is it a good library?
Informations about the package dbmole-panel
DbMolePanel
A panel for Tracy Debugger with DbMole statistics. This is highly recommended tool for profiling an ATK14 application.
Basic usage
$bar = Tracy\Debugger::getBar();
$bar->addPanel(new DbMolePanel($dbmole));
Usage in an ATK14 application (built upon Atk14Skelet)
Use the Composer to install the panel.
cd path/to/your/atk14/project/
composer require atk14/dbmole-panel
Load autoloader from the Composer and enable the Tracy Debugger.
// file: lib/load.php
require(__DIR__."/../vendor/autoload.php");
if(
!TEST &&
!$HTTP_REQUEST->xhr() &&
php_sapi_name()!="cli" // we do not want Tracy in cli
){
Tracy\Debugger::enable(PRODUCTION, __DIR__ . '/../log/');
}
Enable collecting of the DbMole statistics in DEVELOPMENT.
// file: config/settings.php
define("DBMOLE_COLLECT_STATICTICS",DEVELOPMENT);
Add the DbMole panel to the Tracy in _application_after_filter().
// file: app/controllers/application_base.php
function _application_after_filter(){
if(DBMOLE_COLLECT_STATICTICS){
$bar = Tracy\Debugger::getBar();
$bar->addPanel(new DbMolePanel($this->dbmole));
}
}
Licence
DbMolePanel is free software distributed under the terms of the MIT license
All versions of dbmole-panel with dependencies
PHP Build Version
Package Version
The package atk14/dbmole-panel contains the following files
Loading the files please wait ....