yii2-extensions/worker-debug
Composer 安装命令:
composer require yii2-extensions/worker-debug
包简介
Debug toolbar for extension PSR Bridge.
README 文档
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.
Package information
Quality code
Our social networks
License
yii2-extensions/worker-debug 适用场景与选型建议
yii2-extensions/worker-debug 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.74k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 08 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「debug」 「toolbar」 「yii2-extension」 「psr-bridge」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 yii2-extensions/worker-debug 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 yii2-extensions/worker-debug 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 yii2-extensions/worker-debug 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Expand, collapse, change the status of, or delete multiple blocks in a Matrix field simultaneously.
Debug your SimpleBus EventBus and CommandBus
nice output for debug functions for PHP 5.3
A Yii2 extension for a bootstrap wizard
The yii2-videojs-widget is a Yii 2 wrapper for the [video.js](http://www.videojs.com/). A JavaScript and CSS library that makes it easier to work with and build on HTML5 video. This is also known as an HTML5 Video Player.
Analysis module for finding problematical shop data.
统计信息
- 总下载量: 2.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-08-16