webware / traccio
Tracy Debugger integration and profiler for Mezzio apps.
Requires
- php: ~8.4.1 || ~8.5.0 || ~8.6.0
- tracy/tracy: ^2.11.0
Requires (Dev)
- ext-pdo: *
- ext-pdo_sqlite: *
- infection/infection: ^0.35.0
- laminas/laminas-diactoros: ^3.8
- mezzio/mezzio: ^3.26
- php-db/phpdb-sqlite: ^0.2.0
- phpbench/phpbench: ^1.7
- phpunit/phpunit: ^13.4.4
- roave/backward-compatibility-check: ^8.21.0
- roave/security-advisories: dev-master
- webware/webware-tools: ^1.1.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- 1.1.x-dev
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.x-dev
- 1.0.1
- 1.0.0
- 0.1.x-dev
- 0.1.2
- 0.1.1
- 0.1.0
- dev-docs/container-runtime-wslc
- dev-chore/docs-badges-and-php86
- dev-chore/php-8.6-ci-leg
- dev-chore/webware-tools-1.1.2
- dev-chore/markdown-lint-fixes
- dev-tyrsson-bump-webware-tools-rc14
- dev-tyrsson-infection-msi-baseline
- dev-tyrsson-mutation-thread-cap
- dev-restructure-routes-panel-output
This package is auto-updated.
Last update: 2026-11-29 05:05:32 UTC
README
Tracy Debugger integration and profiler for Mezzio applications.
Traccio wires Tracy into a Mezzio middleware pipeline and provides purpose-built debug bar panels for configuration, routes, HTTP requests, and SQL query profiling.
Documentation
Requirements
| Requirement | Version |
|---|---|
| PHP | ~8.4.1 || ~8.5.0 || ~8.6.0 |
| tracy/tracy | ^2.11 |
| mezzio/mezzio | ^3.26 (host app) |
Database profiling additionally requires a PhpDb adapter and the php-db/phpdb package.
Quick start
1. Install
composer require webware/traccio
2. Register the ConfigProvider
The laminas-component-installer plugin offers to do this for you.
// config/config.php use Laminas\ConfigAggregator\ConfigAggregator; use Webware\Traccio\ConfigProvider; $aggregator = new ConfigAggregator([ ConfigProvider::class, // ... other providers ]);
3. Enable debug
// config/autoload/traccio.global.php use Tracy\Debugger; return [ 'debug' => true, Debugger::class => [ 'enable' => Debugger::Development, ], ];
4. Pipe the middleware
// config/pipeline.php use Webware\Traccio\Http\Middleware\TracyDebuggerMiddleware; $app->pipe(TracyDebuggerMiddleware::class);
Pipe it first, so Tracy is initialised before your application runs. Panels appear automatically when their dependencies are present in the container.
Panels
| Panel | Bar label | Requires |
|---|---|---|
ConfigPanel |
Config | nothing |
RoutesPanel |
Routes | Mezzio\Router\RouteCollectorInterface |
SqlProfilerPanel |
Database | PhpDb\Adapter\Profiler\ProfilerInterface |
RequestPanel |
Request | RequestPanelMiddleware piped late |
See Configuration for every option, the full Tracy property list, and database profiling setup.
License
BSD-3-Clause. See LICENSE for details.