PHPackages                             zim32/xhprof-profiler-bundle - 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. zim32/xhprof-profiler-bundle

ActiveSymfony-bundle[Debugging &amp; Profiling](/categories/debugging)

zim32/xhprof-profiler-bundle
============================

This bundle add additional XHProf menu item in symfony debug toolbar

v1.1.0(5y ago)21.7k↓75%2MITHTMLPHP ^7.0

Since Jun 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/zim32/symfony-xhprof-bundle)[ Packagist](https://packagist.org/packages/zim32/xhprof-profiler-bundle)[ Docs](https://github.com/zim32/symfony-xhprof-bundle)[ RSS](/packages/zim32-xhprof-profiler-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

### Installation

[](#installation)

#### Install tideways\_xhprof extension

[](#install-tideways_xhprof-extension)

See  for instructions

#### Install this bundle

[](#install-this-bundle)

```
composer require zim32/xhprof-profiler-bundle

```

Open your **.env.local** file and add

```
ZIM_XHPROF_ENABLE=1

```

This will activate profiler.

Set ZIM\_XHPROF\_ENABLE=0, or remove entirely, to deactivate profiler

Navigate to debug toolbar and click on XHProf menu item. Profit

[![Picture](https://camo.githubusercontent.com/fa179ed1da5f489d6bf004cb6e6d20feaa4c0683cd8d15157e01019eb0d94df6/68747470733a2f2f692e6962622e636f2f704c6b597948422f30362d30352d32312d32342d35372d3932316239622e706e67)](https://camo.githubusercontent.com/fa179ed1da5f489d6bf004cb6e6d20feaa4c0683cd8d15157e01019eb0d94df6/68747470733a2f2f692e6962622e636f2f704c6b597948422f30362d30352d32312d32342d35372d3932316239622e706e67)

### Conditional profiling

[](#conditional-profiling)

If you need to enable profiling based on some condition, you can use special variable **ZIM\_XHPROF\_CONDITION**

The value of this variable is passed to Symfony ExpressionLanguage component, with one variable called **ctx**. This expression must evaluate to bool value (true - enable profiling, false - disable)

CTX is initialized as follows:

```
$ctx->get = $_GET;
$ctx->post = $_POST;
$ctx->server = $_SERVER;
$ctx->cookie = $_COOKIE;

```

So for example to enable profiler only for your user session, you can use

```
ZIM_XHPROF_CONDITION='key_exists("PHPSESSID", ctx.cookie) && ctx.cookie["PHPSESSID"] === "bd465k5q41n8jsdd8iu99mmchk"'

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

3

Last Release

2172d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7669f0fdffa9a3b39ec9798f443caa540c834a10f8f613e8ac69674f4e21ac9a?d=identicon)[zim32](/maintainers/zim32)

---

Tags

symfonybundledebugxhprof

### Embed Badge

![Health badge](/badges/zim32-xhprof-profiler-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/zim32-xhprof-profiler-bundle/health.svg)](https://phpackages.com/packages/zim32-xhprof-profiler-bundle)
```

###  Alternatives

[jolicode/gif-exception-bundle

The GhostBuster of your exception page

20596.8k](/packages/jolicode-gif-exception-bundle)[kendrick/symfony-debug-toolbar-git

Git information into Symfony Debug Toolbar

3060.2k1](/packages/kendrick-symfony-debug-toolbar-git)[polcode/unit-converter-bundle

This bundle allows you to manage values in different units by simply command

1017.5k](/packages/polcode-unit-converter-bundle)[cg/kint-bundle

This bundle lets you use the Kint function in your Twig templates. Kint is a print\_r() replacement which produces a structured, collapsible and escaped output

22125.8k1](/packages/cg-kint-bundle)[renan/cakephp-xhprof

Plugin that quickly enables XHProf profiling for your CakePHP application.

2138.7k](/packages/renan-cakephp-xhprof)[vasek-purchart/tracy-blue-screen-bundle

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

1177.6k](/packages/vasek-purchart-tracy-blue-screen-bundle)

PHPackages © 2026

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