1. Go to this page and download the library: Download rusadrako/debug 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/ */
rusadrako / debug example snippets
use RusaDrako\debug\DebugExpansion;
/** Вывод блока данных с добавлением backtrace (html) */
print_info($data, $title, $view);
// или
DebugExpansion::info($data, $title, $view);
/** Вывод блока данных с добавлением backtrace (console) */
print_info_app($data, $title, $view);
// или
DebugExpansion::info_app($data, $title, $view);
/** Вывод блока данных в формате var_dump с добавлением backtrace (html) */
print_dump($data, $title, $view);
// или
DebugExpansion::dump($data, $title, $view);
/** Вывод табличного массива с добавлением backtrace */
print_table($data, $title, $view);
// или
DebugExpansion::table($data, $title, $view);
/** Вывод древовидного массива/объекта с добавлением backtrace */
print_tree($data, $title, $view);
// или
DebugExpansion::tree($data, $title, $view);
/** Стилизованное сообщение */
print_style($style, $data, $title, $view);
// или
DebugExpansion::style($style, $data, $title, $view);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.