marko / debugbar
Development debugbar and request profiler for the Marko Framework with request, response, timing, memory, messages, database, logs, views, Inertia, and config collectors
0.5.0
2026-05-01 17:22 UTC
Requires
- php: ^8.5
- marko/config: 0.5.0
- marko/core: 0.5.0
- marko/database: 0.5.0
- marko/env: 0.5.0
- marko/log: 0.5.0
- marko/routing: 0.5.0
- marko/view: 0.5.0
Requires (Dev)
- marko/testing: 0.5.0
This package is auto-updated.
Last update: 2026-05-02 01:31:49 UTC
README
Development debugbar and request profiler for the Marko Framework.
Installation
composer require marko/debugbar --dev
Quick Example
With APP_DEBUG=true (or DEBUGBAR_ENABLED=true), the debugbar auto-injects into HTML responses and stores a snapshot for every request. Add custom messages and timings from anywhere in your app:
debugbar('Rendering dashboard', 'info', ['user_id' => $user->id]); $report = debugbar()?->measure('build report', fn () => $this->reports->build());
Open /_debugbar to browse stored requests, or follow the X-Marko-Debugbar-Url header on JSON responses for the per-request profiler page.
Documentation
Full configuration, collectors, and API reference: marko/debugbar