PHPackages                             youssef/debug - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. youssef/debug

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

youssef/debug
=============

Kint - debugging helper for PHP developers

1.0.14(9y ago)08312MITPHPPHP &gt;=5.1.0

Since Aug 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/youssefhad/kint)[ Packagist](https://packagist.org/packages/youssef/debug)[ Docs](https://github.com/raveren/kint)[ RSS](/packages/youssef-debug/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (13)Used By (2)

Kint - debugging helper for PHP developers
==========================================

[](#kint---debugging-helper-for-php-developers)

[![Total Downloads](https://camo.githubusercontent.com/14e514f9c618eac13fa673bbe9b19415d2e45d4ca1830da3251bbdc0ec284844/68747470733a2f2f706f7365722e707567782e6f72672f7261766572656e2f6b696e742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/raveren/kint)

[![Screenshot](https://camo.githubusercontent.com/942241a6919845258bdf5c79c508a0129c8e5ca7f5e157a33fd9c57501612448/687474703a2f2f7261766572656e2e6769746875622e636f6d2f6b696e742f696d672f707265766965772e706e67)](https://camo.githubusercontent.com/942241a6919845258bdf5c79c508a0129c8e5ca7f5e157a33fd9c57501612448/687474703a2f2f7261766572656e2e6769746875622e636f6d2f6b696e742f696d672f707265766965772e706e67)

What am I looking at?
---------------------

[](#what-am-i-looking-at)

At first glance Kint is just a pretty replacement for **[var\_dump()](http://php.net/manual/en/function.var-dump.php)**, **[print\_r()](http://php.net/manual/en/function.print-r.php)** and **[debug\_backtrace()](http://php.net/manual/en/function.debug-backtrace.php)**.

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:

- The **variable name and file + line** where Kint was called from is displayed;
- You can **disable all Kint output easily and on the fly** - so you can even debug live systems without anyone knowing (even though you know you shouldn't be doing that!:).
- **CLI is detected** and formatted for automatically (but everything can be overridden on the fly) - if your setup supports it, the output is colored too:
    [![Kint CLI output](https://camo.githubusercontent.com/8996a121d555e7a5ea55f65eec37145c4beb37bfb658d6ff3b6e589cf3ff1eac/687474703a2f2f692e696d6775722e636f6d2f3642394d434c772e706e67)](https://camo.githubusercontent.com/8996a121d555e7a5ea55f65eec37145c4beb37bfb658d6ff3b6e589cf3ff1eac/687474703a2f2f692e696d6775722e636f6d2f3642394d434c772e706e67)
- **Debug backtraces** are finally fully readable, actually informative and a pleasure to the eye.
- Kint has been **in active development since 2010** and is shipped with [Drupal 8](https://www.drupal.org/) by default as part of its devel suite. You can trust it not being abandoned or getting left behind in features.
- Variable content is **displayed in the most informative way** - and you *never, ever* miss anything! Kint guarantees you see every piece of physically available information about everything you are dumping\*;
    - in some cases, the content is truncated where it would otherwise be too large to view anyway - but the user is always made aware of that;
- Some variable content types have an alternative display - for example you will be able see `JSON` in its raw form - but also as an associative array:
    [![Kint displays data intelligently](https://camo.githubusercontent.com/c858e57ce5d3731e6c4d06b5f1152176a1a009b8cf90fbaea0bec9a35ed70694/687474703a2f2f692e696d6775722e636f6d2f39503537526f722e706e67)](https://camo.githubusercontent.com/c858e57ce5d3731e6c4d06b5f1152176a1a009b8cf90fbaea0bec9a35ed70694/687474703a2f2f692e696d6775722e636f6d2f39503537526f722e706e67)
    There are more than ten custom variable type displays inbuilt and more are added periodically.

Installation and Usage
----------------------

[](#installation-and-usage)

One of the main goals of Kint is to be **zero setup**.

[Download the archive](https://github.com/raveren/kint/archive/master.zip) and simply

```
