kint-php / kint
Kint - Advanced PHP dumper
Installs: 13 954 017
Dependents: 328
Suggesters: 7
Security: 0
Stars: 2 778
Watchers: 106
Forks: 292
Open Issues: 4
Requires
- php: >=7.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- phpunit/phpunit: ^9
- seld/phar-utils: ^1
- symfony/finder: >=7
- vimeo/psalm: ^5
Suggests
- kint-php/kint-helpers: Provides extra helper functions
- kint-php/kint-twig: Provides d() and s() functions in twig templates
- dev-master
- 6.0
- 6.0-rc1
- 6.0-beta8
- 6.0-beta7
- 6.0-beta6
- 6.0-beta5
- 6.0-beta4
- 6.0-beta3.1
- 6.0-beta3
- 6.0-beta2
- 6.0-beta1
- 5.x-dev
- 5.1.1
- 5.1.0
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0
- 5.0-beta1
- 4.x-dev
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.4
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1
- 4.0
- 4.0-beta1
- 4.0-alpha1
- 3.x-dev
- 3.3
- 3.2.2
- 3.2.1
- 3.2
- 3.1
- 3.0
- 3.0-beta1
- 3.0-alpha2
- 3.0-alpha1
- 2.x-dev
- 2.2
- 2.1.2
- 2.1.1
- 2.1
- 2.0
- 2.0-rc1
- 2.0-beta2
- 2.0-beta1
- 2.0-alpha5
- 2.0-alpha4
- 2.0-alpha3
- 2.0-alpha2
- 2.0-alpha1
- 1.x-dev
- 1.1
- 1.0.10
- 1.0.6
- 1.0.3
- 1.0.2
- 1.0.0
- v0.9.1
- v0.9
This package is auto-updated.
Last update: 2024-11-20 17:57:33 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
You can set Kint\Renderer\AbstractRenderer::$js_nonce
and $css_nonce
to have Kint work with CSP
There's a small demo and full documentation on the GH pages site
Authors
Jonathan Vollebregt (jnvsor)
Contributors
License
Licensed under the MIT License