![]() |
API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|

At first glance Kint is just a pretty replacement for var_dump(), print_r() and debug_backtrace().
However, it's much, much more than that. You will eventually wonder how you developed without it.
One of the main goals of Kint is to be zero setup.
Download the file and simply
Kint::$enabled_mode = false; to turn it completely off. Kint\Renderer\RichRenderer::$folder = false; right after you include Kint.~d($var) this call will output in plain text format.+d($var) will disregard depth level limits and output everything. !d($var) will expand the output automatically.-d($var) will attempt to ob_clean the previous output and flush after printing.~+d($var)+ sign will open/close it and all its children.+ sign in will open/close everything on the page.To change display theme, useKint\Renderer\RichRenderer::$theme = 'theme.css';. You can pass the absolute path to a CSS file, or use one of the built in themes: *original.css<tt>(default) *solarized.css *solarized-dark.css *aante-light.css`D on the keyboard and you will be able to traverse the tree with arrows, HJKL, and TAB keys - and expand/collapse nodes with SPACE or ENTER.Jonathan Vollebregt (jnvsor)
Rokas Šleinius (raveren)
Licensed under the MIT License