PHPackages                             mmucklo/krumo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. mmucklo/krumo

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

mmucklo/krumo
=============

KRUMO - version 2.0 of print\_r(); and var\_dump(); (with new updates)

v0.7.6(4mo ago)94171.6k↓73.7%37[1 PRs](https://github.com/mmucklo/krumo/pulls)6LGPLPHPPHP &gt;=7.0

Since Apr 25Pushed 3w ago12 watchersCompare

[ Source](https://github.com/mmucklo/krumo)[ Packagist](https://packagist.org/packages/mmucklo/krumo)[ RSS](/packages/mmucklo-krumo/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (4)Versions (32)Used By (6)

📰 Krumo
=======

[](#-krumo)

Krumo is a PHP debug printer and replacement for `print_r()` and `var_dump()`.

📦 Installation:
---------------

[](#-installation)

Include the Krumo class file in your PHP project:

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

**or**

```
composer require mmucklo/krumo
```

✨ Usage:
--------

[](#-usage)

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

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

// Debug print the array, short and long versions
k($arr);
krumo($arr);

// Output the array and then die();
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:
----------

[](#-options)

These options can be passed as the *second* argument to Krumo to alter behavior:

- `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:
----------------

[](#-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.

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance88

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~162 days

Recently: every ~326 days

Total

30

Last Release

121d ago

PHP version history (2 changes)v0.2.2PHP &gt;=5.2.17

v0.7.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f05a1e018633083f2618b189473318e14d14d921216188d36c52e582244340c7?d=identicon)[mmucklo](/maintainers/mmucklo)

---

Top Contributors

[![scottchiefbaker](https://avatars.githubusercontent.com/u/3429760?v=4)](https://github.com/scottchiefbaker "scottchiefbaker (189 commits)")[![mmucklo](https://avatars.githubusercontent.com/u/245122?v=4)](https://github.com/mmucklo "mmucklo (44 commits)")[![bobdenotter](https://avatars.githubusercontent.com/u/1833361?v=4)](https://github.com/bobdenotter "bobdenotter (16 commits)")[![jasverix](https://avatars.githubusercontent.com/u/22839684?v=4)](https://github.com/jasverix "jasverix (2 commits)")[![kktsvetkov](https://avatars.githubusercontent.com/u/694812?v=4)](https://github.com/kktsvetkov "kktsvetkov (2 commits)")[![AlmogBaku](https://avatars.githubusercontent.com/u/98982?v=4)](https://github.com/AlmogBaku "AlmogBaku (2 commits)")[![cbodin](https://avatars.githubusercontent.com/u/220255?v=4)](https://github.com/cbodin "cbodin (2 commits)")[![driehle](https://avatars.githubusercontent.com/u/1586788?v=4)](https://github.com/driehle "driehle (2 commits)")[![shadowwa](https://avatars.githubusercontent.com/u/3328149?v=4)](https://github.com/shadowwa "shadowwa (2 commits)")[![kayalion](https://avatars.githubusercontent.com/u/2340819?v=4)](https://github.com/kayalion "kayalion (1 commits)")[![BenceSzalai](https://avatars.githubusercontent.com/u/14061916?v=4)](https://github.com/BenceSzalai "BenceSzalai (1 commits)")[![marwahaha](https://avatars.githubusercontent.com/u/2541209?v=4)](https://github.com/marwahaha "marwahaha (1 commits)")

---

Tags

debugdebuggingprettyprintprint\_rvar\_dumpkrumo

### Embed Badge

![Health badge](/badges/mmucklo-krumo/health.svg)

```
[![Health](https://phpackages.com/badges/mmucklo-krumo/health.svg)](https://phpackages.com/packages/mmucklo-krumo)
```

###  Alternatives

[jbzoo/jbdump

Script for debug and dump PHP variables and other stuff. This tool is a nice replacement for print\_r() and var\_dump() functions.

211.1M3](/packages/jbzoo-jbdump)[leeoniya/dump-r

a cleaner, leaner mix of print\_r() and var\_dump()

12368.9k5](/packages/leeoniya-dump-r)[kktsvetkov/krumo

Krumo is a debugging tool, which displays structured information about any PHP variable. It is a nice replacement for print\_r() or var\_dump() which are used by a lot of PHP developers.

8362.2k](/packages/kktsvetkov-krumo)[ivoba/stop

nice output for debug functions for PHP 5.3

1042.4k5](/packages/ivoba-stop)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
