guanhui07 / kint
Kint - debugging tool for PHP developers
5.1.2
2024-08-27 02:04 UTC
Requires
- php: >=7.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- phpspec/prophecy-phpunit: ^2
- phpunit/phpunit: ^9
- seld/phar-utils: ^1
- symfony/finder: >=4.0
- vimeo/psalm: ^5
Suggests
- kint-php/kint-helpers: Provides extra helper functions
- kint-php/kint-twig: Provides d() and s() functions in twig templates
This package is auto-updated.
Last update: 2026-06-19 13:47:14 UTC
README
What am I looking at?
Kint is a dumper in the vein of var_dump(), with keyboard controls, search, access path provision, and automatic data parsing.
In other words, when you dump a JSON string Kint will let you unfold and search the JSON structure and even provide you the code you need to access specific fields.
Installation
composer require kint-php/kint --dev
Without composer
Download the file and simply
require 'kint.phar';
Usage
<?php Kint::dump($GLOBALS, $_SERVER); // pass any number of parameters d($GLOBALS, $_SERVER); // or simply use d() as a shorthand Kint::trace(); // Debug backtrace s($GLOBALS); // Basic output mode +d($GLOBALS); // No depth limit Kint::$enabled_mode = false; // Disable kint d('Get off my lawn!'); // Debugs no longer have any effect
There's a small demo and full documentation on the GH pages site
Authors
Jonathan Vollebregt (jnvsor)
Contributors
License
Licensed under the MIT License