Welcome to the Xhprof integration package for buggregator in Laravel. This repository allows you to effortlessly enable Xhprof support for buggregator in your Laravel application.
To get started, install the package via composer:
composer require --dev maantje/xhprof-buggregator-laravelSet the buggregator endpoint in your environment file, the displayed value is the default value:
PROFILER_ENDPOINT=http://127.0.0.1:8000/api/profiler/storeToggle Xhprof in your environment file as needed, but remember to disable it when not in use to avoid performance impact
XHPROF_ENABLED=trueAlternatively, you can include the X-Xhprof-Enabled header in your request to explicitly enable or disable profiling for that specific call. When this header is present, it takes precedence over the environment variable.
Enabled values: true 1 on yes
Disabled values: false 0 off no
This feature works great with a browser extension like ModHeader. It lets you switch profiling on and off right from your browser.
Add the buggregator service to your docker-compose file:
buggregator:
image: ghcr.io/buggregator/server:dev
ports:
- 8000:8000
- 1025:1025
- 9912:9912
- 9913:9913
networks:
- sailSet the profiler endpoint in your environment file:
PROFILER_ENDPOINT=http://buggregator:8000/api/profiler/storeThe MIT License (MIT). Please see License File for more information.