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(6y ago)21.7k↓85.4%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 yesterday

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 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity53

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

2219d 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

[symfony/web-profiler-bundle

Provides a development tool that gives detailed information about the execution of any request

2.3k160.5M1.2k](/packages/symfony-web-profiler-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

66529.9k11](/packages/web-auth-webauthn-symfony-bundle)[jolicode/gif-exception-bundle

The GhostBuster of your exception page

20698.5k](/packages/jolicode-gif-exception-bundle)[ecotone/symfony-bundle

Ecotone for Symfony — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Symfony Messenger, via PHP attributes.

11249.0k1](/packages/ecotone-symfony-bundle)

PHPackages © 2026

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