承接 tchwork/debug-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

tchwork/debug-bundle

最新稳定版本:v1.4.2

Composer 安装命令:

composer require tchwork/debug-bundle

包简介

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(),
    );
}

统计信息

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

GitHub 信息

  • Stars: 89
  • Watchers: 6
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-07