Kint Library

Development Status
Stable
Active Installs
Maintainers
Downloaden

Last updated: 2018-09-04

Works with CiviCRM 5.0 or higher.

  • Adds Kint library for enhace variable debuging
  • Adds SqlFormatter library for formatting sql statements.

Once the libray is installed, printout functions are available for debugging your CiviCRM extensions

  • q($var): prints out $var with sql format and syntax highlights
  • qd($var): prints out $var with sql format and syntax highlights and die()
  • d($var): prints out $var in rich mode
  • s($var): prints out $var in plain mode
  • dd($var): calls d() and die()
  • sd($var): calls s() and die()
  • dr($var): calls d() and returns $var
  • sr($var): calls s() and returns $var
Screenshot (click to enlarge)