konradmichalik/typo3-dump-server 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

konradmichalik/typo3-dump-server

Composer 安装命令:

composer require konradmichalik/typo3-dump-server

包简介

This extension brings the Symfony Var Dump Server to TYPO3.

README 文档

README

Extension icon

TYPO3 extension typo3_dump_server

Latest Stable Version TYPO3 Coverage CGL Tests License

This extension brings the Symfony Var Dump Server to TYPO3.

Note

This package is an alternative approach to the default TYPO3 debugging methods or the universal use of xdebug.

The dump server gathers all dump call outputs, e.g. for preventing interference with HTTP or API responses.

Console Command

🔥 Installation

Requirements

  • TYPO3 >= 11.5
  • PHP 8.2+

Composer

Packagist Packagist Downloads

composer require --dev konradmichalik/typo3-dump-server

TER

TER version TER downloads

Download the zip file from TYPO3 extension repository (TER).

📊 Usage

Screencast

Console command

Start the dump server with the following command:

vendor/bin/typo3 server:dump

Console Command

Use the format option to change the output format to html:

vendor/bin/typo3 server:dump --format=html > dump.html

Note

The dump server will be available at tcp://127.0.0.1:9912 by default. Use the environment variable TYPO3_DUMP_SERVER_HOST to change the host.

Warning

The dump server protocol is unauthenticated and unencrypted, and dumps often contain sensitive data (credentials, session data, personal data). Keep the server bound to a loopback address (127.0.0.1) — never expose it via 0.0.0.0 or a public interface. Install the extension as a dev dependency (composer require --dev) so it is not deployed to production systems.

IDE Deep Links

Click on source file paths in the dump output to open them directly in your IDE. Configure the IDE via environment variable:

export TYPO3_DUMP_SERVER_IDE=phpstorm

Supported IDEs: phpstorm, vscode, sublime, textmate, atom

You can also use a custom URL pattern with %file% and %line% placeholders:

export TYPO3_DUMP_SERVER_IDE="myide://open?file=%file%&line=%line%"

TYPO3 Context

The dump server automatically displays the TYPO3 version and application context (e.g. Development, Production) alongside each dump output.

Dump

Use the dump function in your code:

dump($variable);

// or

\Symfony\Component\VarDumper::dump($variable);

ViewHelper

Use the symfony:dump ViewHelper in your Fluid templates:

<html xmlns:symfony="http://typo3.org/ns/KonradMichalik/Typo3DumpServer/ViewHelpers">

<symfony:dump>{variable}</symfony:dump>

Extension settings

By default, a dump() call will add something like the following output to the frontend if the dump server isn't running:

Dump output in frontend

You can suppress this output with the suppressDump setting in the extension configuration. If this setting is enabled, the output will be suppressed and the dump will only be sent to the dump server.

You can find the extension settings in the TYPO3 backend under Admin Tools > Settings > Extension Configuration > typo3_dump_server.

Programmatic Handling

You can listen to dump events programmatically using TYPO3's PSR-14 event system:

use KonradMichalik\Typo3DumpServer\Event\DumpEvent;
use TYPO3\CMS\Core\Attribute\AsEventListener;

#[AsEventListener]
final class MyDumpEventListener
{
    public function __invoke(DumpEvent $event): void
    {
        $value = $event->getValue();
        $type = $event->getType();
        
        // Your custom logic here
        error_log("Dumped {$type}: " . print_r($value, true));
    }
}

Note

Register your event listener via the AsEventListener attribute (TYPO3 >= 13) or in your service configuration (see docs).

🧑‍💻 Contributing

Please have a look at CONTRIBUTING.md.

💛 Acknowledgements

This project is highly inspired by the laravel-dump-server & the symfony var-dumper component itself.

⭐ License

This project is licensed under GNU General Public License 2.0 (or later).

konradmichalik/typo3-dump-server 适用场景与选型建议

konradmichalik/typo3-dump-server 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 3, 最近一次更新时间为 2025 年 02 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 konradmichalik/typo3-dump-server 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 konradmichalik/typo3-dump-server 我们能提供哪些服务?
定制开发 / 二次开发

基于 konradmichalik/typo3-dump-server 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 18
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-02-19