定制 savinmikhail/symfony-profiler-response-bundle 二次开发

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

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

savinmikhail/symfony-profiler-response-bundle

最新稳定版本:v0.1.3

Composer 安装命令:

composer require --dev savinmikhail/symfony-profiler-response-bundle

包简介

Symfony Web Profiler panel to display JSON/text response bodies with size limits and guards (dev-only)

README 文档

README

Scrutinizer Code Quality Code Coverage dist-size status

Symfony Profiler Response Bundle

Dev-only Symfony bundle that adds a "Response Body" panel to the Web Profiler, showing JSON/text response payloads with size limits and sensible guards.

Features

  • Captures response body for textual and JSON-like MIME types
  • Skips streamed/binary responses to avoid breaking downloads
  • Truncates large payloads (default 256 KB) to protect the toolbar
  • Pretty-prints JSON when possible

Installation

  1. Install the bundle:

       composer require --dev savinmikhail/symfony-profiler-response-bundle
  2. Copy the configuration file:

       cp vendor/savinmikhail/symfony-profiler-response-bundle/config/packages/response_profiler.yaml config/packages/
  3. The bundle will be automatically registered by Symfony Flex.

Usage

  • In the Web Profiler, open any request and look for the new "Response Body" tab.
  • The toolbar badge shows MIME and size; the panel shows headers and the (pretty-printed) body, truncated if oversized.

Appearance

img.png

Notes

  • This bundle is designed for development. Do not enable in production.
  • Streamed and binary responses are ignored.
  • Pretty-printing of very large JSON may be skipped when payloads are huge.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-18