Class for easy debugging
- Write a command to the console:
composer require iextra/dumper
- Connect autoloader in your project:
<?php require 'vendor/autoload.php';
- Download archive from repository https://github.com/iextra/dumper and unzip
- Copy the Dump.php file into your project and include it:
<?php require $_SERVER['DOCUMENT_ROOT'] . '/Dump.php';
<?php
Extra\Dump::toPopup($data, 'label');
Extra\Dump::p($data); //Short call
<?php
Extra\Dump::toFile($data, 'fileName', 'label');
Extra\Dump::f($data); //Short call
<?php
Extra\Dump::toConsole($data, 'label');
Extra\Dump::c($data); //Short call