aeatech/web-snapshot-profiler-xhprof-bundle
Symfony bundle for production-friendly web profiling with XHProf and XHGui. Capture snapshot profiles per request, control sampling via route/header/request param matchers, and configure flags for memory/internal function data. Requires PHP 8.2+ and ext-xhprof.
ext-xhprof, which must be installed and enabled (not always available in shared hosting).pecl install xhprof, extension=xhprof.so in php.ini).ext-xhprof availability.composer config extra.symfony.allow-contrib true
composer config --json --merge extra.symfony.endpoint '["https://api.github.com/repos/AEATech/recipes/contents/index.json?ref=main", "flex://defaults"]'
composer require aeatech/web-snapshot-profiler-xhprof-bundle
composer require aeatech/web-snapshot-profiler-xhprof-bundle
Enable in config/bundles.php.is_profiling_enabled: true in aea_tech_web_snapshot_profiler_xhprof.yaml.xhgui.import_uri (e.g., http://xhgui:8080 for Docker).app_version for snapshot naming.docker run -d --name xhgui -p 8080:8080 -v xhgui_data:/var/www/xhgui/xhprof xhgui/xhgui:0.22.1
/var/www/xhgui/xhprof).ext-xhprof.ext-xhprof for PHP upgrades.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| XHProf extension missing | Profiling fails silently | Pre-check `php -m |
| XHGUI server down | No visualization of profiling data | Deploy with high availability (e.g., Kubernetes). |
How can I help you explore Laravel packages today?