定制 yii2-extensions/worker-debug 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yii2-extensions/worker-debug

最新稳定版本:0.1.3

Composer 安装命令:

composer require yii2-extensions/worker-debug

包简介

Debug toolbar for extension PSR Bridge.

README 文档

README

Yii Framework

Worker Debug


PHPUnit Mutation Testing PHPStan

Enhanced debugging capabilities for Yii2 applications with FrankenPHP worker mode
Real-time performance monitoring, comprehensive request inspection, and worker-aware debugging

Features

Feature Overview

Demo

Template

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

PHP Yii 2.0.x Yii 22.0.x Latest Stable Version Total Downloads

Quality code

Codecov PHPStan Level Max Super-Linter StyleCI

Our social networks

Follow on X

License

License

统计信息

  • 总下载量: 2.74k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2025-08-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固