1. Go to this page and download the library: Download nin/phalcon-debugbar 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/ */
nin / phalcon-debugbar example snippets
composer
$container = new \Phalcon\Di\FactoryDefault();
$container->register(new \Nin\Debugbar\ServiceProvider());
use Nin\Debugbar\Phalcon\Helper\Debugbar;
Debugbar::info($object);
Debugbar::error('Error!');
Debugbar::warning(new \Phalcon\Config\Config(['title' => 'Warning']));
use Nin\Debugbar\Phalcon\Helper\Debugbar;
Debugbar::startMeasure('function', 'Function runtime');
Debugbar::stopMeasure('function');
Debugbar::measure('function', function() {
// Do something…
});
use Nin\Debugbar\Phalcon\Helper\Debugbar;
try {
// Do something
} catch (Exception $e) {
Debugbar::addThrowable($e);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.