PHPackages                             perftools/php-profiler-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. perftools/php-profiler-laravel

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

perftools/php-profiler-laravel
==============================

Laravel Octane bridge for perftools/php-profiler

0.3.0(3w ago)174↓18.9%MITPHPPHP ^8.2

Since May 11Pushed 1w agoCompare

[ Source](https://github.com/perftools/php-profiler-laravel)[ Packagist](https://packagist.org/packages/perftools/php-profiler-laravel)[ RSS](/packages/perftools-php-profiler-laravel/feed)WikiDiscussions main Synced 1w ago

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

perftools/php-profiler-laravel
==============================

[](#perftoolsphp-profiler-laravel)

Laravel Octane bridge for `perftools/php-profiler`.

This package wires the core profiler into the Laravel Octane request lifecycle.

It starts profiling on `RequestReceived` and stops profiling on `RequestTerminated`.

Scope
-----

[](#scope)

- Laravel Octane only.
- No FPM, queue worker, or Artisan profiling lifecycle is provided here.
- Runtime failures are logged and do not break the request.

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

[](#requirements)

- PHP 8.2+
- `illuminate/support` ^10.0, ^11.0, ^12.0, or ^13.0
- `laravel/octane` ^2.3
- `perftools/php-profiler` ^1.4

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

[](#installation)

Install the package into a Laravel Octane application:

```
composer require perftools/php-profiler-laravel
```

Service provider
----------------

[](#service-provider)

Laravel package discovery registers the provider automatically:

`Xhgui\Profiler\Laravel\XhguiProfilerServiceProvider`

If you disable discovery, register that provider manually.

Configuration
-------------

[](#configuration)

Publish the package config:

```
php artisan vendor:publish --tag=xhgui-config
```

The package owns the `enabled` toggle and ships a default file-based saver example. Profiling is disabled by default, so enabling it is an explicit opt-in. The resulting `config/xhgui.php` is passed to the core profiler.

Default config shape:

```
