patchwork/dumper
最新稳定版本:v1.4.2
Composer 安装命令:
composer require patchwork/dumper
包简介
The DebugBundle of Symfony 2.6 backported for 2.3+
关键字:
README 文档
README
This bundle provides a better dump() function, that you can use instead of
var_dump(), better meaning:
- per object and resource types specialized view: e.g. filter out Doctrine internals
while dumping a single proxy entity, or get more insight on opened files with
stream_get_meta_data(); - ability to dump internal references, either soft ones (objects or resources)
or hard ones (
=&on arrays or objects properties). Repeated occurrences of the same object/array/resource won't appear again and again anymore. Moreover, you'll be able to inspect the reference structure of your data. - ability to operate in the context of an output buffering handler.
- full exposure of the internal mechanisms used for walking through an arbitrary PHP data structure.
Calling dump($myVvar) works in all PHP code and {% dump myVar %} or
{{ dump(myVar) }} in Twig templates.
Usage
The recommended way to use this package is through composer.
Just create a composer.json file and run the php composer.phar install
command to install it:
{
"require": {
"tchwork/debug-bundle": "~1.4"
}
}
Then, enable the bundle in your app/AppKernel.php, preferably only for the dev
and test environments:
public function registerBundles() { $bundles = array( // ... new \Symfony\Bundle\DebugBundle\DebugBundle(), ); }
patchwork/dumper 适用场景与选型建议
patchwork/dumper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 30.07k 次下载、GitHub Stars 达 89, 最近一次更新时间为 2014 年 02 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「dump」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 patchwork/dumper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 patchwork/dumper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 patchwork/dumper 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This package will add the `dd` and `dump` helpers to your Phalcon application.
Simple Twig extension improving templates debugging
nice output for debug functions for PHP 5.3
Laravel SQL Queries Dumper
Dump your variables and stop the execution of the script.
The alternative for var_dump function
统计信息
- 总下载量: 30.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 90
- 点击次数: 21
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-05