|Number of watchers on Github||2066|
|Number of open issues||5|
|Average time to close an issue||17 days|
|Average time to merge a PR||1 day|
|Open pull requests||16+|
|Closed pull requests||27+|
|Last commit||over 2 years ago|
|Repo Created||about 8 years ago|
|Repo Last Updated||over 2 years ago|
|Organization / Author||kint-php|
|Do you use kint? Leave a review!|
|View open issues (5)|
|View kint activity|
|View on github|
|Fresh, new opensource launches 🚀🚀🚀|
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
However, it's much, much more than that. Even the excellent
xdebug var_dump improvements don't come close - you will eventually wonder how you developed without it.
Just to list some of the most useful features:
One of the main goals of Kint is to be zero setup.
Download the file and simply
<?php require 'kint.php';
composer require kint-php/kint
<?php Kint::dump($GLOBALS, $_SERVER); // pass any number of parameters d($GLOBALS, $_SERVER); // or simply use d() as a shorthand Kint::trace(); // Debug backtrace d(1); // Debug backtrace shorthand s($GLOBALS); // Basic output mode ~d($GLOBALS); // Text only output mode Kint::$enabled_mode = false; // Disable kint d('Get off my lawn!'); // Debugs no longer have any effect
Kint::$enabled_mode = false;to turn its functionality completely off. The best practice is to enable Kint in a development environment only (or for example
Kint::$enabled_mode = ($_SERVER['REMOTE_ADDR'] === '<your IP>');) - so even if you accidentally leave a dump in production, no one will know.
~d($var)this call will output in plain text format.
+d($var)will disregard depth level limits and output everything. (Careful, this can hang your browser on large objects!)
!d($var)will expand the output automatically.
-d($var)will attempt to
ob_cleanthe previous output.
Kint_Renderer_Rich::$theme = '<theme name>';where available options are:
'aante-light.css'. You can also pass the absolute path to a CSS file to use that instead.
ddd()were removed in Kint 2, but you can make them yourself with helper aliases
Licensed under the MIT License
Most of this release is bugfixes, but there are a few notable changes.
parserPluginsmethod on the
Kint_Rendererwhich can alter or supply a list of plugins for the parser to be initialized with. A whitelist on the text renderer makes use of this by disabling most of the plugins so text, cli, and plain dumps are fast.
This is a serious bug and the reason for the emergency patch release. This bug may affect operation of caller code in a default Kint 2.0+ installation. Please upgrade at your earliest convenience.