PHPackages                             makfly/laravel-web-profiler - 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. makfly/laravel-web-profiler

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

makfly/laravel-web-profiler
===========================

Symfony-style web profiler for Laravel with inline toolbar and React SPA dashboard

v0.1.0(1w ago)5131[1 PRs](https://github.com/MakFly/laravel-web-profiler/pulls)MITTypeScriptPHP ^8.2

Since Mar 8Pushed 1w agoCompare

[ Source](https://github.com/MakFly/laravel-web-profiler)[ Packagist](https://packagist.org/packages/makfly/laravel-web-profiler)[ RSS](/packages/makfly-laravel-web-profiler/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Laravel Web Profiler
====================

[](#laravel-web-profiler)

**Symfony-style web profiler for Laravel** — inline debug toolbar + full-featured profiler dashboard.

[![PHP 8.2+](https://camo.githubusercontent.com/ccaa43fc634d348cffccb1d8db7b55d9f17c5d46944bc99a15c3c982724b387d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://php.net)[![Laravel 11|12](https://camo.githubusercontent.com/cf3203afc4f003dc5656e6a684f11a5786224fdb31ec4c4848e807068c048bc2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d313125323025374325323031322d4646324432303f6c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://laravel.com)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

---

Features
--------

[](#features)

- **Debug Toolbar** — Symfony-inspired toolbar injected at the bottom of every HTML page
- **Profiler Dashboard** — React SPA accessible at `/_profiler` with full request inspection
- **13 Data Collectors** — Request, Time, Memory, Queries, Logs, Routes, Events, Exceptions, Cache, Mail, Views, Gate, HTTP Client
- **API Profiling** — `X-Debug-Token` and `X-Debug-Token-Link` headers on every response (JSON, HTML, XML)
- **AJAX Interception** — Automatic fetch/XHR monitoring with sub-request tracking in the toolbar
- **Zero Configuration** — Works out of the box when `APP_DEBUG=true`

Screenshot
----------

[](#screenshot)

> *Coming soon*

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

[](#requirements)

- PHP 8.2+
- Laravel 11.x or 12.x

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

[](#installation)

```
composer require makfly/laravel-web-profiler --dev
```

Publish the configuration (optional):

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

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

[](#configuration)

OptionDefaultDescription`profiler.enabled``APP_DEBUG`Enable/disable the profiler`profiler.path``_profiler`URL prefix for the profiler dashboard`profiler.toolbar.enabled``true`Show the debug toolbar on HTML pages`profiler.storage.driver``file`Storage driver (`file`)`profiler.storage.max_profiles``200`Maximum stored profiles before auto-purge`profiler.storage.expiration``86400`Profile TTL in seconds (24h)`profiler.environments``['local', 'testing']`Environments where the profiler is activeUsage
-----

[](#usage)

### Debug Toolbar

[](#debug-toolbar)

The toolbar is automatically injected into HTML responses. It displays:

- HTTP status code and method
- Response time
- Peak memory usage
- Database query count and duration
- Log count and errors
- AJAX sub-requests (with links to their profiles)

Click the profiler token link (top-right) to open the full profiler dashboard.

### Profiler Dashboard

[](#profiler-dashboard)

Navigate to `/_profiler` to browse all profiled requests. Filter by method, status code, URL, or IP address.

Click any profile to inspect the full request details across all collectors.

### API Profiling

[](#api-profiling)

Every response includes profiling headers — no toolbar injection on non-HTML responses:

```
X-Debug-Token: a1b2c3d4e5f6
X-Debug-Token-Link: http://localhost:8000/_profiler/a1b2c3d4e5f6

```

Use these headers from any API client (Postman, curl, frontend SPA) to access the full profile:

```
curl -i http://localhost:8000/api/users
# Look for X-Debug-Token-Link in response headers
# Open that URL in your browser to see the full profile
```

This works seamlessly with **API Platform**, **Sanctum**, **Passport**, or any JSON API.

Collectors
----------

[](#collectors)

CollectorKeyDescriptionRequest`request`Headers, cookies, session, server variablesTime`time`Total response time with stopwatch eventsMemory`memory`Peak memory usage, PHP memory limitQuery`query`SQL queries with bindings, duration, slow/duplicate detectionLog`log`Application log messages with levels and contextRoute`route`Matched route, controller, middleware stackEvent`event`Dispatched events and listener countsException`exception`Caught exceptions with stack tracesCache`cache`Cache hits, misses, writes, deletesMail`mail`Sent emails with recipients and subjectsView`view`Rendered Blade views with data keysGate`gate`Authorization checks and resultsHTTP Client`http_client`Outgoing HTTP requests via Laravel HTTP clientEnable or disable collectors individually in `config/profiler.php`:

```
'collectors' => [
    'query' => true,
    'log' => true,
    'cache' => false, // disable cache collector
    // ...
],
```

Excluding Routes
----------------

[](#excluding-routes)

Profiler routes (`_profiler/*`) are automatically excluded. Add custom exclusions:

```
'exclude_paths' => [
    'telescope*',
    'horizon*',
    '_debugbar*',
    'health-check',
],
```

Commands
--------

[](#commands)

```
# Purge all stored profiles
php artisan profiler:purge

# Check profiler status
php artisan profiler:status
```

Contributing
------------

[](#contributing)

Contributions are welcome! Please open an issue or submit a pull request.

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance98

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

13d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36bd784d4a0a99b303da318f09603e9861ed9a0cabc2135103eb9954f2d7362c?d=identicon)[MakFly](/maintainers/MakFly)

---

Top Contributors

[![MakFly](https://avatars.githubusercontent.com/u/6107225?v=4)](https://github.com/MakFly "MakFly (1 commits)")

---

Tags

laraveldebugprofilertoolbarperformance

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/makfly-laravel-web-profiler/health.svg)

```
[![Health](https://phpackages.com/badges/makfly-laravel-web-profiler/health.svg)](https://phpackages.com/packages/makfly-laravel-web-profiler)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k121.6M538](/packages/barryvdh-laravel-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k253.2k13](/packages/fruitcake-laravel-debugbar)[fruitcake/laravel-telescope-toolbar

Toolbar for Laravel Telescope based on Symfony Web Profiler

8031.5M3](/packages/fruitcake-laravel-telescope-toolbar)[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

388282.6k3](/packages/recca0120-laravel-tracy)[lsrur/inspector

Laravel Inspector, debugging and profiling tools for Web Artisans

23441.1k](/packages/lsrur-inspector)[daylerees/anbu

The Anbu profiler for Laravel 4.

3054.9k](/packages/daylerees-anbu)

PHPackages © 2026

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