2017 © Pedro Peláez
 

library doctrine-debug-helper

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

image

jeremykendall/doctrine-debug-helper

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

  • Monday, January 12, 2015
  • by jeremykendall
  • Repository
  • 1 Watchers
  • 2 Stars
  • 120 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Doctrine Debug Helper

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

Installation

Use [Composer][3] to install Doctrine Debug Helper., (*2)

{
    "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., (*3)

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

Prints a dump of the public, protected and private properties of $var., (*5)

Uses custom defaults: $maxDepth defaults to 3 and $stripTags defaults to false., (*6)

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

Prints a dump of the public, protected and private properties of $var and dies., (*8)

Uses custom defaults: $maxDepth defaults to 3 and $stripTags defaults to false., (*9)

Recommendation

Do you even Xdebug?, (*10)

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., (*11)

The Versions

12/01 2015

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

orm helper doctrine debugging helper function convenience function

12/01 2015

0.0.2

0.0.2.0

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

  Sources   Download

MIT

The Requires

 

orm helper doctrine debugging helper function convenience function

28/08 2014

0.0.1

0.0.1.0

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

  Sources   Download

MIT

The Requires

 

orm helper doctrine helper function convenience function