定制 jeremykendall/doctrine-debug-helper 二次开发

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

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

jeremykendall/doctrine-debug-helper

Composer 安装命令:

composer require jeremykendall/doctrine-debug-helper

包简介

Convenience wrapper around \Doctrine\Common\Util\Debug::dump()

README 文档

README

The Doctrine Debug Helper is a set of convenience functions that wrap \Doctrine\Common\Util\Debug::dump(). Because lazy.

Installation

Use Composer to install Doctrine Debug Helper.

{
    "require": {
        "jeremykendall/doctrine-debug-helper": "*"
    }
}

dc() and dcd()

dc() and dcd() wrap \Doctrine\Common\Util\Debug::dump(), but use custom defaults. I much prefer a higher $maxDepth than 2 and I don't want the dump run through html_entity_decode. Since the point of these function is less typing, these functions provide the defaults that I prefer.

void dc($var, $maxDepth = 3, $stripTags = false)

Prints a dump of the public, protected and private properties of $var.

Uses custom defaults: $maxDepth defaults to 3 and $stripTags defaults to false.

void dcd($var, $maxDepth = 3, $stripTags = false)

Prints a dump of the public, protected and private properties of $var and dies.

Uses custom defaults: $maxDepth defaults to 3 and $stripTags defaults to false.

Recommendation

Do you even Xdebug?

In my opinion, \Doctrine\Common\Util\Debug::dump() is best when Xdebug is installed. You should be using Xdebug in development anyhow, so go install it now. NOW.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固