PHPackages                             jspeedz/debug-pooper-symfony - 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. jspeedz/debug-pooper-symfony

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

jspeedz/debug-pooper-symfony
============================

Some more debugging methods to be used in a symfony framework (or standalone)

0.0.14(5mo ago)032.4k↓35%1MITPHPCI failing

Since Oct 11Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/jspeedz/debug-pooper-symfony)[ Packagist](https://packagist.org/packages/jspeedz/debug-pooper-symfony)[ RSS](/packages/jspeedz-debug-pooper-symfony/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (4)Versions (16)Used By (0)

debug-pooper-symfony
====================

[](#debug-pooper-symfony)

Tired of using symfony's dump(); method? Use 💩(); instead!

More useful features
--------------------

[](#more-useful-features)

### Dumping prepared statements

[](#dumping-prepared-statements)

Dumping prepared statements into a readable, and usually executable SQL strings can be useful.

#### Example 1:

[](#example-1)

```
dumpQuery(
    'SELECT 1 FROM x WHERE y = ?',
    [
        1234
    ],
    [
        \Doctrine\DBAL\ParameterType::INTEGER
    ]
);
```

Result:

`SELECT 1 FROM x WHERE y = 1234`

#### Example 2:

[](#example-2)

```
dumpQuery(
    'SELECT 1 FROM x WHERE y = :some_named_value',
    [
        'some_named_value' => 1234
    ],
    [
        \Doctrine\DBAL\ParameterType::INTEGER
    ]
);
```

Result:

`SELECT 1 FROM x WHERE y = 1234`

### Dumping request information

[](#dumping-request-information)

```
dumpRequest();
```

Result:

`To be determined..`

### Dumping simple XML element objects

[](#dumping-simple-xml-element-objects)

Converting and dumping SimpleXmlObjects into a readable string.

#### Example 1:

[](#example-1-1)

```
dumpSimpleXmlElement(
    simplexml_load_string('someValue')
);
```

Result:

```
[
    Element {
        Name: 'root'
        String Content: ''
        Content in Default Namespace
            Children: 1 - 1 'someElement'
            Attributes: 0
    }
]

```

### Dumping simple XML element object trees

[](#dumping-simple-xml-element-object-trees)

Converting and dumping SimpleXmlObjects into a readable tree string.

#### Example 1:

[](#example-1-2)

```
dumpSimpleXmlElementTree(
    simplexml_load_string('someValue')
);
```

Result:

```
   [0] //
   	->someElement[0]
   		(string) 'someValue' (9 chars)

```

Utilities
---------

[](#utilities)

### Timing a block of code

[](#timing-a-block-of-code)

```
$timer = debugTimer();
sleep(1);
$timeInMs = $timer();
```

Code templates
--------------

[](#code-templates)

### PhpStorm Live templates

[](#phpstorm-live-templates)

```
if($this->container->getParameter('kernel.environment') === 'dev') {
    💩($END$);
    die(__FILE__ . ':' . __LINE__);
}
```

```
if($this->container->getParameter('kernel.environment') === 'dev') {
    dumpQuery($END$);
    die(__FILE__ . ':' . __LINE__);
}
```

```
if($this->container->getParameter('kernel.environment') === 'dev') {
    dumpRequest();
    die(__FILE__ . ':' . __LINE__);
}
```

```
if($this->container->getParameter('kernel.environment') === 'dev') {
    $timer = debugTimer();
    // Do some work
    💩($END$);
    $taskTookMs = $timer();
    echo 'Completed task in ' . $taskTookMs . 'ms!' . PHP_EOL;
    die(__FILE__ . ':' . __LINE__);
}
```

```
if($this->container->getParameter('kernel.environment') === 'dev') {
    dumpSimpleXmlElement($END$);
    die(__FILE__ . ':' . __LINE__);
}
```

```
if($this->container->getParameter('kernel.environment') === 'dev') {
    dumpSimpleXmlElementTree($END$);
    die(__FILE__ . ':' . __LINE__);
}
```

Install
-------

[](#install)

Please only install this package for development:

`composer require --dev jspeedz/debug-pooper-symfony`

Requirements
------------

[](#requirements)

- Symfony 3.3+
- PHP 8.1+
- Doctrine DBAL 4+

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance73

Regular maintenance activity

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 97.1% 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 ~205 days

Recently: every ~640 days

Total

14

Last Release

157d ago

### Community

Maintainers

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

---

Top Contributors

[![jspeedz](https://avatars.githubusercontent.com/u/6095226?v=4)](https://github.com/jspeedz "jspeedz (33 commits)")[![aalwash](https://avatars.githubusercontent.com/u/3220347?v=4)](https://github.com/aalwash "aalwash (1 commits)")

---

Tags

debugging-toolssymfonydebugdump

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jspeedz-debug-pooper-symfony/health.svg)

```
[![Health](https://phpackages.com/badges/jspeedz-debug-pooper-symfony/health.svg)](https://phpackages.com/packages/jspeedz-debug-pooper-symfony)
```

###  Alternatives

[symfony/var-dumper

Provides mechanisms for walking through any arbitrary PHP variable

7.4k904.9M9.6k](/packages/symfony-var-dumper)[kint-php/kint

Kint - Advanced PHP dumper

2.9k20.6M305](/packages/kint-php-kint)[xrdebug/php

PHP client library for xrDebug

23824.8k3](/packages/xrdebug-php)[leeoniya/dump-r

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

12368.9k5](/packages/leeoniya-dump-r)[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)[phalcon/dd

This package will add the `dd` and `dump` helpers to your Phalcon application.

24297.7k27](/packages/phalcon-dd)

PHPackages © 2026

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