Profile Yii 3 middleware, routes, and console workflows with framework-aware performance monitoring
Perfbase helps Yii 3 teams trace PSR-15 request flow, console execution, and framework services without bolting on a generic APM that ignores Yii conventions.
Why teams choose Perfbase for Yii 3
Config provider friendly integration
PSR-15 middleware support
Console profiling through Symfony events
Yii 3
Performance monitoring for Yii 3 applications
Supported versions
Yii 3
Quick install
composer require perfbase/yii3Starter config
// config/params.php
return [
'perfbase' => [
'enabled' => true,
'api_key' => 'your-api-key',
],
];Use cases
Why teams use Perfbase for Yii 3
Perfbase is built for teams that need more than a local debug toolbar. It brings production-facing traces, framework-specific context, and shared visibility across the slow paths that matter most in Yii 3.
Keep modern Yii apps observable from day one
See how middleware, routes, and services contribute to latency in real application traffic.
Avoid generic tracing blind spots
Use framework-aware integration points that fit Yii 3 instead of forcing an abstract APM model onto the stack.
Cover console work alongside web requests
Bring CLI workflows into the same performance picture as HTTP traffic.
Profiling coverage
What gets profiled and how Perfbase works in Yii 3
Perfbase stays framework-aware while keeping setup light. These are the behaviors and operational paths this integration is built to expose.
PSR-15 HTTP middleware
Standard PSR-15 middleware registered via a ConfigProvider.
Console event subscriber
Console commands are profiled via Symfony console event subscription.
Config provider pattern
DI services are registered automatically via the Yii 3 config provider architecture.
Route attribute resolution
Extracts route templates from PSR-7 request attributes for low-cardinality naming.
Include and exclude filters
Per-context filters for HTTP and console profiling.
Fail-open design
Profiling errors never crash your application. Debug mode is available for development.
Setup preview
How to get started with Perfbase in Yii 3
Start with install, configuration, and the first framework-specific profiling steps here. When you want full implementation detail, each card links directly into the complete guide.
Installation
Install the Perfbase PHP extension first. This is what does the actual profiling:
Open docs section →
Configuration
Set your Perfbase parameters in the application params config:
Open docs section →
HTTP middleware
Register the PSR-15 middleware in your application's middleware pipeline:
Open docs section →
Console command profiling
Register the event subscriber with your console application's Symfony event dispatcher:
Open docs section →
FAQ
Yii 3 profiler and performance monitoring FAQ
Does Perfbase fit Yii 3 architecture cleanly?
Yes. Perfbase is designed around Yii 3 patterns such as config providers, PSR-15 middleware, and container-managed services.
Can Perfbase profile console commands in Yii 3?
Yes. Console command profiling is supported via Symfony console event integration.
Will Perfbase preserve low-cardinality route naming?
Yes. Perfbase extracts route templates from request attributes where possible so trace names stay useful and aggregatable.
Start profiling
Ready to start profiling production traffic?
Create a project, install the package, and start capturing framework-level traces in minutes.