2017 © Pedro Peláez
 

library krumo

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

image

mmucklo/krumo

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  • Friday, March 23, 2018
  • by mmucklo
  • Repository
  • 10 Watchers
  • 65 Stars
  • 21,749 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 31 Forks
  • 8 Open issues
  • 24 Versions
  • 13 % Grown

The README.md

Krumo

Krumo is a replacement for print_r() and var_dump(). This is an updated version because the SourceForge.net version appears to have been abandoned., (*1)

Installation:

Include the Krumo class in your header.php or global project include:, (*2)

include("/path/to/krumo/class.krumo.php");

or, (*3)

Add this line to your composer.json "require" section:, (*4)

composer.json

{
    "require": {
        "mmucklo/krumo": "*"
    }
}

Usage:

After Krumo is loaded you have access to the global Krumo functions: krumo(), k(), and kd()., (*5)

$arr = array(
    'first' => 'Jason',
    'last'  => 'Doolis',
    'phone' => array(5032612314,4512392014),
    'likes' => array('animal' => 'kitten', 'color' => 'purple'),
);

// Dump out the array, short and long versions
k($arr);
krumo($arr);

// Output the array and then exit();
kd($arr);

// Return the HTML output instead of printing it out
$my_html = krumo($arr, KRUMO_RETURN);

// Output the array with all nodes expanded
krumo($arr, KRUMO_EXPAND_ALL);

// The object based method
$krumo = new Krumo;
$krumo->dump($arr);

Options:

These options can be passed as the second argument to Krumo to alter behavior:, (*6)

  • KRUMO_RETURN - return the Krumo output instead of printing it
  • KRUMO_EXPAND_ALL - start Krumo with all nodes expanded
  • KRUMO_SORT - sort arrays before displaying (note: overrides config)
  • KRUMO_NO_SORT - do not sort arrays before displaying (note: overrides config)

Configuration:

Krumo will work without a configuration file. If you'd like to change the default settings you can copy the krumo.sample.ini to krumo.ini and change the file appropriately., (*7)

The Versions

23/03 2018

dev-master

9999999-dev

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

The Development Requires

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas
by Scott Baker

debug debugging print print_r var_dump pretty krumo

15/03 2016

v0.5.7

0.5.7.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

The Development Requires

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas
by Scott Baker

debug debugging print print_r var_dump pretty krumo

02/02 2016

v0.5.6

0.5.6.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas
by Scott Baker

debug debugging print print_r var_dump pretty krumo

02/02 2016

v0.5.5

0.5.5.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas
by Scott Baker

debug debugging print print_r var_dump pretty krumo

02/02 2016

v0.5.4

0.5.4.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas
by Scott Baker

debug debugging print print_r var_dump pretty krumo

28/01 2016

v0.5.3

0.5.3.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

16/05 2015

v0.5.2

0.5.2.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

09/04 2015

v0.5.1

0.5.1.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

26/02 2014

v0.5.0

0.5.0.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

01/11 2013

v0.4.4

0.4.4.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

10/10 2013

v0.4.3

0.4.3.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

30/09 2013

v0.4.2

0.4.2.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

29/09 2013

v0.4.1

0.4.1.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

29/09 2013

v0.4.0

0.4.0.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

27/09 2013

v0.3.2

0.3.2.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

26/09 2013

v0.3.1

0.3.1.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

10/09 2013

v0.3.0

0.3.0.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

09/09 2013

v0.2.8

0.2.8.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

07/09 2013

v0.2.7

0.2.7.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

07/09 2013

v0.2.6

0.2.6.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

07/09 2013

v0.2.5

0.2.5.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

07/09 2013

v0.2.4

0.2.4.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

29/06 2013

v0.2.3

0.2.3.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo

25/04 2013

v0.2.2

0.2.2.0

KRUMO - version 2.0 of print_r(); and var_dump(); (with new updates)

  Sources   Download

LGPL

The Requires

  • php >=5.2.17

 

by Kaloyan K. Tsvetkov
by Matthew J. Mucklo
by Stefan Thomas

debug debugging print print_r var_dump pretty krumo