Kint - debugging helper for PHP developers


What am I looking at?

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


require 'kint.phar';

Or, if you use Composer:

composer require kint-php/kint --dev



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

Tips & Tricks


Jonathan Vollebregt (jnvsor)
Rokas Šleinius (raveren)


Licensed under the MIT License

Last update: Thu, 15 Mar 2018 14:29:55