PHPackages                             dk4software/php-debug-utils - 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. dk4software/php-debug-utils

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

dk4software/php-debug-utils
===========================

A utility to debug php code.

0.8(2y ago)031MITPHPPHP &gt;=5.6.0

Since Nov 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dk4software/php-debug-utils)[ Packagist](https://packagist.org/packages/dk4software/php-debug-utils)[ RSS](/packages/dk4software-php-debug-utils/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (9)Used By (0)

Utility to debug PHP
====================

[](#utility-to-debug-php)

This is a small utility to debug Magento code using logs. You can use it by adding this library:

```
composer require dk4software/php-debug-utils
```

**Feel free to fork and enhance.**

By default it will insert logs into /var/www/var/log/mylog.log

If you want to override, you can pass the log path as parameter: `\Dk4software\Debug::instance('')`

It has three methods:

- `evaluate($variable_to_examine, 'label')` - examine a variable at a point in the code
- `trace()` - Trace the execution at a point in code.
- `log($msg_string_to_output)` - Log a message.

E.g:

```
\Dk4software\Debug::instance()->evaluate($coupon, '$coupon');
\Dk4software\Debug::instance()->log('My Message');
\Dk4software\Debug::instance()->trace();
```

**Do remember to remove the code and use namespace before checking in the code.**

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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 ~44 days

Recently: every ~77 days

Total

8

Last Release

980d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c39b572c83f711b2a788b330d97a7a95bb9f4c1972e14ae41ae8e02e52ef4c6?d=identicon)[dk4software](/maintainers/dk4software)

---

Top Contributors

[![dineshk4tryzens](https://avatars.githubusercontent.com/u/67283270?v=4)](https://github.com/dineshk4tryzens "dineshk4tryzens (9 commits)")

### Embed Badge

![Health badge](/badges/dk4software-php-debug-utils/health.svg)

```
[![Health](https://phpackages.com/badges/dk4software-php-debug-utils/health.svg)](https://phpackages.com/packages/dk4software-php-debug-utils)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)[beyondcode/helo-laravel

HELO Laravel debug helper

90360.1k](/packages/beyondcode-helo-laravel)

PHPackages © 2026

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