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

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

sokil/php-debug-utils
=====================

Debug utils

30Shell

Since Nov 12Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Debug utils for PHP
===================

[](#debug-utils-for-php)

Remote debugging
----------------

[](#remote-debugging)

Mey be usefull when code executed on remote server, and PHP runtime needs to connect to IDE on local machine, but remote server can not connect to local IDE directly.

First forward remote port to local port, accessible by IDE:

```
ssh -fN some-ssh-host -R 9000:127.0.0.1:9000

```

Then run script:

```
./debugRemote /path/to/some.php arg1 arg2

```

Building flame graph
--------------------

[](#building-flame-graph)

More info about flame graphs may be found in .

Run scipt and pass path target to SVG file:

```
./flameGraph /path/to/flamegrapg.svf /path/to/some.php arg1 arg2

```

Flamegrapg will be stored at /path/to/flamegrapg.svf

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/902e21ecf6517341b1f2a3c2f93a3eb115396fc6524effaeabc816b481909e64?d=identicon)[sokil](/maintainers/sokil)

---

Top Contributors

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

---

Tags

debugflamegraphphpprofilingremotedebugtracexdebug

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/sokil-php-debug-utils/health.svg)](https://phpackages.com/packages/sokil-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)
