PHPackages                             pavelmgn/xhprof-buggregator-laravel - 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. pavelmgn/xhprof-buggregator-laravel

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

pavelmgn/xhprof-buggregator-laravel
===================================

Xhprof buggregator integration for Laravel

v0.0.1.x-dev(1mo ago)016MITPHPPHP ^8.1

Since Mar 20Pushed 1mo agoCompare

[ Source](https://github.com/pavelmgn/xhprof-buggregator-laravel)[ Packagist](https://packagist.org/packages/pavelmgn/xhprof-buggregator-laravel)[ Docs](https://github.com/maantje/xhprof-buggregator-laravel)[ RSS](/packages/pavelmgn-xhprof-buggregator-laravel/feed)WikiDiscussions main Synced 1mo ago

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

Xhprof support in buggregator for Laravel
=========================================

[](#xhprof-support-in-buggregator-for-laravel)

Welcome to the Xhprof integration package for [buggregator](https://buggregator.dev/) in Laravel. This repository allows you to effortlessly enable Xhprof support for buggregator in your Laravel application.

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

[](#requirements)

Make sure that your server is configured with following PHP version and extensions:

- PHP 8.1+
- [XHProf](http://pecl.php.net/package/xhprof) ext or its fork [longxinH/xhprof](https://github.com/longxinH/xhprof).

Installation
------------

[](#installation)

To get started, install the package via composer:

```
composer require --dev maantje/xhprof-buggregator-laravel
```

Usage
-----

[](#usage)

Set the buggregator endpoint in your environment file, the displayed value is the default value:

```
PROFILER_ENDPOINT=http://127.0.0.1:8000/api/profiler/store
```

Toggle Xhprof in your environment file as needed, but remember to disable it when not in use to avoid performance impact

```
XHPROF_ENABLED=true
```

Alternatively, 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](https://modheader.com/). It lets you switch profiling on and off right from your browser.

### Usage Profiler

[](#usage-profiler)

By default, the profiler is turned on and off with each HTTP request. However, you may have other points where your\\application starts. For example, it can be queues, commands, and so on.

In such cases, you can configure the profiler to run in the desired location yourself:

```
use SpiralPackages\Profiler\Profiler;

class RegisterUserActionJob
{
    public function __construct(
        public string $name,
        public string $password
    ) {
    }

    /**
     * Get Profiler object from Container DI
     *
     * @param Profiler $profiler
     * @return void
     */
    public function handle(Profiler $profiler): void
    {
        try {
            $profiler->start();

            // code for register new user
        }
        finally {
            $profiler->end();
        }
    }
}
```

### Usage with Sail

[](#usage-with-sail)

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:
        - sail
```

Set the profiler endpoint in your environment file:

```
PROFILER_ENDPOINT=http://buggregator:8000/api/profiler/store
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance89

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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

54d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3deffbfc217830e1473b02c0bcf8a83450624a052c05b6101df770075700f509?d=identicon)[pavelmgn](/maintainers/pavelmgn)

---

Top Contributors

[![maantje](https://avatars.githubusercontent.com/u/9058265?v=4)](https://github.com/maantje "maantje (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")[![pavelmgn](https://avatars.githubusercontent.com/u/8817759?v=4)](https://github.com/pavelmgn "pavelmgn (4 commits)")[![popkovkirill](https://avatars.githubusercontent.com/u/6718174?v=4)](https://github.com/popkovkirill "popkovkirill (1 commits)")[![ARTWINPRO](https://avatars.githubusercontent.com/u/16427316?v=4)](https://github.com/ARTWINPRO "ARTWINPRO (1 commits)")[![phh](https://avatars.githubusercontent.com/u/1304003?v=4)](https://github.com/phh "phh (1 commits)")[![alies-dev](https://avatars.githubusercontent.com/u/5278175?v=4)](https://github.com/alies-dev "alies-dev (1 commits)")

---

Tags

laravelxhprofmaantjebuggregator

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/pavelmgn-xhprof-buggregator-laravel/health.svg)

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

###  Alternatives

[maantje/xhprof-buggregator-laravel

Xhprof buggregator integration for Laravel

43272.6k](/packages/maantje-xhprof-buggregator-laravel)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

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

A Laravel Package to integrate Nette Tracy Debugger

388283.0k3](/packages/recca0120-laravel-tracy)[stephenjude/filament-debugger

About

102125.4k2](/packages/stephenjude-filament-debugger)[spatie/laravel-error-solutions

Display solutions on the Laravel error page

9773.5k](/packages/spatie-laravel-error-solutions)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22156.6k](/packages/bavix-laravel-xhprof)

PHPackages © 2026

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