iextra/dumper

Class for easy debugging

Maintainers

Details

github.com/iextra/dumper

Source

Issues

Installs: 198

Dependents: 1

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/iextra/dumper

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

This package is auto-updated.

Last update: 2025-11-29 03:17:33 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