raveren/kint
Kint is a powerful, developer-friendly PHP debugging and inspection tool for Laravel. Dump variables with rich, readable output (arrays, objects, stack traces, timing) in the browser or CLI, making it easier to explore data and troubleshoot faster.
composer require --dev raveren/kintvar_dump() or dd() with d($variable) or k($variable)Kint::dump($var); or ensure autoloading loads vendor/autoload.php (it works out-of-the-box with Composer)d($_SERVER) in a script — Kint will render a beautifully formatted, collapsible output with type info, memory usage, and structure — far more readable than native dumpsd() calls inside if (env('APP_DEBUG')) or use Kint::$enabled = true/false; to toggle globallyKint::trace(); to dump the call stack with arguments and source locationsdd() replacement: Create ddd() helper: function ddd(...$vars) { Kint::dump(...$vars); die; }Kint::enabled() with environment checks or custom rules (e.g., only for admin IPs)Kint::$mode = 'cli'; for terminal-friendly output ( ANSI color, tree view without HTML)ob_start() / ob_get_clean() if neededKint::$theme = 'monokai'; or build custom CSS classes via Kint::$renderer_classesKint::$aliases or Kint::$max_depthd() calls in production — Kint adds overhead and may leak sensitive data; use config flags or environment checksd() — add it to bootstrap.php or define a stub in .phpstorm.meta.php or phpstan.neonKint\Renderer\RendererInterface to build custom output (e.g., JSON logging) or extend Kint\Parser\Parser for custom object parsingHow can I help you explore Laravel packages today?