Kint
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
What is it?
Kint for PHP is a tool designed to present your debugging data in the absolutely best way possible.
In other words, it's
var_dump()anddebug_backtrace()on steroids. Easy to use, but powerful and customizable. An essential addition to your development toolbox.
This module allows to use kint($data) like as dpm()/dsm()/krumo() in Devel module.
Installation using Drush
Download Kint module and Libraries module. Use drush en kint libraries command for enable module: after enabling of module Drush will prompts you about downloading of Kint library.
If you just want to download or re-download library then use drush kint-download command.
Manual installation
If you are not familiar with drush or just have no drush installed, you can always do the same as drush commands, but using hands and your luck. Just execute following steps:
1. Download Kint module and Libraries module
2. Download Kint library
3. Put it in libraries folder (usualy it is in sites/all/libraries folder)
4. Rename folder to kint if needed.
So you should have this path: sites/all/libraries/kint/Kint.class.php
5. Enable module
Module usage:
This module allows to use functions:
kint($data1, $data2, $data3, ...);kint_trace();
Drupal 8.x version
This module is oficially part of Devel 8.x module. Just enable Devel Kint module.
Credits
- Original Kint distribution by Rokas Å leinius
- Thanks to Vadim Mirgorod for inspiration, mentoring and patience :)
