2017 © Pedro PelĂĄez
 

library dbug

PHP version of ColdFusion's cfdump. Outputs colored and structured tabular variable information.

image

chillem/dbug

PHP version of ColdFusion's cfdump. Outputs colored and structured tabular variable information.

  • Monday, January 15, 2018
  • by CodyErekson
  • Repository
  • 0 Watchers
  • 0 Stars
  • 296 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 44 Forks
  • 0 Open issues
  • 1 Versions
  • 9 % Grown

The README.md

dBug

This is my fork of ospinto's dBug class. Original here: https://github.com/ospinto/dBug, (*1)

Install

composer require chillem/dbug

How to use

require(__DIR__ . '/vendor/autoload.php');

new dBug($myVariable);

In my projects, I wrap the class instantiation with something like the following, which allows for passing in multiple arguments., (*2)

if ( !function_exists('ddd') ){
    function ddd(... $args)
    {
        foreach ($args as $x) {
            new \dBug\dBug($x);
        }
    }
}

ddd($a, $b, $arr);

More examples at http://dbug.ospinto.com/examples.php, (*3)

Features

PHP version of ColdFusion’s cfdump., (*4)

Outputs colored and structured tabular variable information., (*5)

Variable types supported are: Arrays, Classes/Objects, Database and XML Resources., (*6)

Ability to force certain types of output. Example: You can force an object variable to be outputted as an array type variable., (*7)

Stylesheet can be easily edited., (*8)

Table cells can be expanded and collapsed., (*9)

It’s FREE!!!, (*10)

Changelog

1.2.3, (*11)

Handling for closures, (*12)

Generate PHPDoc, (*13)

1.2.2, (*14)

Use modern constructor, (*15)

1.2.1, (*16)

Move dBug.php to src/ directory to comply with PSR4 autoloading standards, (*17)

Create dBug/ namespace, (*18)

The Versions

15/01 2018

dev-master

9999999-dev

PHP version of ColdFusion's cfdump. Outputs colored and structured tabular variable information.

  Sources   Download

GPL-3.0

The Requires

  • php >=5.3.0