PHPackages                             martinlindhe/php-debughelper - 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. martinlindhe/php-debughelper

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

martinlindhe/php-debughelper
============================

0.1.17(10y ago)23546MITPHPPHP &gt;=5.4.0

Since Mar 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/martinlindhe/php-debughelper)[ Packagist](https://packagist.org/packages/martinlindhe/php-debughelper)[ RSS](/packages/martinlindhe-php-debughelper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (19)Used By (6)

About
-----

[](#about)

[![Build Status](https://camo.githubusercontent.com/2c49e5b3f2d2c48aed66cff0325ef770a6f1cb47c1c59145660d043be5523a58/68747470733a2f2f7472617669732d63692e6f72672f6d617274696e6c696e6468652f7068702d646562756768656c7065722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/martinlindhe/php-debughelper)

Installation
------------

[](#installation)

With Composer

```
composer require martinlindhe/php-debughelper

```

or add manually to composer.json:

```
{
    "require": {
        "martinlindhe/php-debughelper": "~0.1"
    }
}
```

HexPrinter
----------

[](#hexprinter)

```
use DebugHelper\HexPrinter;

echo HexPrinter::render("\xF0\xFF\x00");
```

will output something like

```
000000: f0 ff 00                                         ...

```

BinaryPrinter
-------------

[](#binaryprinter)

```
use DebugHelper\BinaryPrinter;

echo BinaryPrinter::render("\xF0\xFF\x00");
```

will output something like

```
000000: 11110000 11111111 00000000                 ...

```

Stopwatch
---------

[](#stopwatch)

```
use DebugHelper\Stopwatch;

$watch = new Stopwatch;
$watch->start();
// do some heavy lifting ...
$watch->stop();

echo $watch->getElapsedTime()." seconds elapsed\n";
```

Logging
-------

[](#logging)

```
dbg($msg); // write to stdout if DEBUG=1
nfo($msg);
err($msg);

dbgTime($msg);
nfoTime($msg);
errTime($msg);

```

Helpers
-------

[](#helpers)

```
d()       dumps variable, using symfony/var-dumper
dd()      dump and die
bt($ex = null)  prints a backtrace (optionally from exception)
dh()      shorthand for DebugHelper\HexPrinter::render()
dbits()   shorthand for DebugHelper\BinaryPrinter::render()
dm()      prints current memory usage
apcm()    prints memory usage by the apc extension

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~8 days

Recently: every ~26 days

Total

18

Last Release

3940d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/93df11d6507d6b99fca1ecaf7dc8e6a42a3393a7010d1bdacb3a1a18865b4eb7?d=identicon)[martinlindhe](/maintainers/martinlindhe)

---

Top Contributors

[![martinlindhe](https://avatars.githubusercontent.com/u/181531?v=4)](https://github.com/martinlindhe "martinlindhe (36 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/martinlindhe-php-debughelper/health.svg)

```
[![Health](https://phpackages.com/badges/martinlindhe-php-debughelper/health.svg)](https://phpackages.com/packages/martinlindhe-php-debughelper)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[spatie/laravel-ignition

A beautiful error page for Laravel applications.

566146.7M471](/packages/spatie-laravel-ignition)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[symfony/debug-bundle

Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework

2.4k115.8M824](/packages/symfony-debug-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[laradumps/laradumps-core

LaraDumps is a friendly app designed to boost your Laravel / PHP coding and debugging experience.

261.2M13](/packages/laradumps-laradumps-core)

PHPackages © 2026

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