yii2-extensions / worker-debug
Debug toolbar for extension PSR Bridge.
Installs: 2 070
Dependents: 0
Suggesters: 1
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/yii2-extensions/worker-debug
Requires
- php: >=8.1
- psr/http-factory: ^1.1
- yiisoft/yii2: ^2.0.54|^22
- yiisoft/yii2-debug: ^2.1.27
Requires (Dev)
- infection/infection: ^0.27|^0.32
- maglnet/composer-require-checker: ^4.1
- php-forge/coding-standard: ^0.1
- php-forge/support: ^0.3
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-strict-rules: ^2.0.3
- phpunit/phpunit: ^10.5
- xepozz/internal-mocker: ^1.4
- yii2-extensions/phpstan: ^0.4
This package is auto-updated.
Last update: 2026-01-28 08:05:25 UTC
README
Worker Debug
Enhanced debugging capabilities for Yii2 applications with FrankenPHP worker mode
Real-time performance monitoring, comprehensive request inspection, and worker-aware debugging
Features
Demo
Explore the ready-to-run Yii2 + FrankenPHP application template with Worker Debug pre-configured.
Installation
composer require --dev yii2-extensions/worker-debug:^0.1
Quick start
Add the following to your development configuration (config/web.php)
<?php declare(strict_types=1); use yii2\extensions\debug\WorkerDebugModule; if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => WorkerDebugModule::class, // uncomment the following to add your IP if you are not connecting from localhost. //'allowedIPs' => ['127.0.0.1', '::1'], ]; }
Important
The Worker Debug extension is specifically designed for development environments.
Never enable it in production as it may expose sensitive application data.
Why Worker Debug?
Traditional Yii2 debug toolbar relies on PHP's global state and request lifecycle that doesn't align with FrankenPHP's persistent worker mode. The Worker Debug extension addresses this by:
- Accurate Timing โ Correctly tracks request duration in worker environments
- State Isolation โ Ensures debug data doesn't leak between requests
- Performance Optimization โ Minimal overhead on worker processes
- Enhanced Visibility โ Better insights into worker-specific behavior
Documentation
For detailed configuration options and advanced usage.
- ๐งช Testing Guide
- ๐ ๏ธ Development Guide