PHPackages                             epwt/xhprof - 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. epwt/xhprof

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

epwt/xhprof
===========

EPWT XHProf Symfony Profiler Integration

v1.0.0(11y ago)6252MITPHPPHP &gt;=5.4

Since Apr 20Pushed 11y ago2 watchersCompare

[ Source](https://github.com/aurimasniekis/epwt-xhprof)[ Packagist](https://packagist.org/packages/epwt/xhprof)[ Docs](http://github.com/gcds/epwt-xhprof)[ RSS](/packages/epwt-xhprof/feed)WikiDiscussions master Synced 1mo ago

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

EPWTXhprofBundle
================

[](#epwtxhprofbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/a6f9544f089829a6c60f507b2404259dcdc2b81508672b98c043fa086153f0bb/68747470733a2f2f706f7365722e707567782e6f72672f657077742f786870726f662f76657273696f6e2e737667)](https://packagist.org/packages/epwt/xhprof) [![Latest Unstable Version](https://camo.githubusercontent.com/ecc939ca6dd3b525715541ece9e4f64fb9d16963b46c9b0f5791cdda0287851c/68747470733a2f2f706f7365722e707567782e6f72672f657077742f786870726f662f762f756e737461626c652e737667)](//packagist.org/packages/epwt/xhprof) [![Total Downloads](https://camo.githubusercontent.com/5225f634f3cf5c6e8c0f54369e729891c2ec2039e211db97bef4b0b543f4ddee/68747470733a2f2f706f7365722e707567782e6f72672f657077742f786870726f662f646f776e6c6f6164732e737667)](https://packagist.org/packages/epwt/xhprof) [![Analytics](https://camo.githubusercontent.com/36a4530576ad21ccefa0c4422f3a60ee10cc60c69d591ee963b6e94a744de192/68747470733a2f2f67612d626561636f6e2e61707073706f742e636f6d2f55412d36323036343038312d312f676364732f657077742d786870726f66)](https://github.com/igrigorik/ga-beacon)

EPWTXhprofBundle provides XHProf integration to Symfony profiler and wrapper for XHProf simple usage anywhere in project.

[![Toolbar](Resources/meta/toolbar.small.png?raw=true "Toolbar")](Resources/meta/toolbar.png)

[![Samples List](Resources/meta/samples_list.small.png?raw=true "Samples List")](Resources/meta/samples_list.png) [![Sample Runs](Resources/meta/sample_runs.small.png?raw=true "Sample Runs")](Resources/meta/sample_runs.png) [![Sample Run](Resources/meta/sample_run.small.png?raw=true "Sample Run")](Resources/meta/sample_run.png)[![Full Sample Run](Resources/meta/full_sample.small.png?raw=true "Full Sample Run")](Resources/meta/full_sample.png)

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

[](#requirements)

- Symfony &gt;= 2.3
- PHP &gt;= 5.4
- Facebook XHProf Extension

Install via Composer
--------------------

[](#install-via-composer)

```
composer require --dev epwt/xhprof "~1.0"

```

Setting up
----------

[](#setting-up)

Register EPWTXhprofBundle in AppKernel.php file. I suggest to use it only in development or testing environment

### AppKernel.php

[](#appkernelphp)

```
public function registerBundles()
{
	if (in_array($this->getEnvironment(), array('dev', 'test'))) {
		$bundles[] = new EPWT\XhprofBundle\EPWTXhprofBundle();
	}
}
```

Usage
-----

[](#usage)

To use XHProf anywhere in project just initiate profiling by using global function:

```
xhprofStart('Name of sample');
```

To end profiling use:

```
xhprofEnd();
```

Sample Usage
------------

[](#sample-usage)

```
for($a = 0; $a < 20; $a++) {
    xhprofStart('Hello world');
    for ($i = 0; $i < 20; $i ++) {
        sleep(0.1);
    }
    xhprofEnd();
}
```

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

```
Resources/meta/LICENSE

```

About
-----

[](#about)

EPWTXhprofBundle is brought to you by [Aurimas Niekis](https://github.com/gcds).

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/gcds/epwt-xhprof/issues).

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the [Symfony Standard Edition](https://github.com/symfony/symfony-standard)to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4046d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/770bae1f46ac2b4536db820b8642491c25e2e2fd44e761110269e4722679a80d?d=identicon)[aurimasniekis](/maintainers/aurimasniekis)

---

Tags

symfonybundleprofilerepwtxhprof

### Embed Badge

![Health badge](/badges/epwt-xhprof/health.svg)

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

###  Alternatives

[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235321.4k](/packages/laracraft-tech-laravel-xhprof)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22156.6k](/packages/bavix-laravel-xhprof)[staabm/xhprof.io

GUI to analyze the profiling data collected using XHProf - A Hierarchical Profiler for PHP.

424.4k](/packages/staabm-xhprofio)[sandstorm/plumber

Profiling Toolkit for Neos Flow and Neos

384.9k](/packages/sandstorm-plumber)[polcode/unit-converter-bundle

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

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

PHPackages © 2026

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