iextra/dumper

Class for easy debugging

v1.0.5 2022-04-30 16:36 UTC

This package is auto-updated.

Last update: 2024-04-29 04:03:44 UTC


README

Class for easy debugging

Installation (composer)

  1. Write a command to the console:
    composer require iextra/dumper
    
  2. Connect autoloader in your project:
    <?php
    require 'vendor/autoload.php'; 

Alternative installation

  1. Download archive from repository https://github.com/iextra/dumper and unzip
  2. 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