iextra / dumper
Class for easy debugging
v1.0.5
2022-04-30 16:36 UTC
Requires
- php: >=5.6.0
README
Class for easy debugging
Installation (composer)
- Write a command to the console:
composer require iextra/dumper
- Connect autoloader in your project:
<?php require 'vendor/autoload.php';
Alternative installation
- 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';
Usage
Dump to Popup
<?php Extra\Dump::toPopup($data, 'label'); Extra\Dump::p($data); //Short call
Dump to File
<?php Extra\Dump::toFile($data, 'fileName', 'label'); Extra\Dump::f($data); //Short call
Dump to Console
<?php Extra\Dump::toConsole($data, 'label'); Extra\Dump::c($data); //Short call