raulfraile/ladybug-bundle
LadybugBundle adds an easy, extensible var_dump/print_r replacement for Symfony2. Use ladybug_dump()/ld() in controllers or the ladybug_dump Twig filter to inspect strings, arrays, objects, and resources with clean, readable output.
Debugging & Developer Experience (DX) Enhancement:
var_dump/print_r with a cleaner, more structured output (e.g., collapsible sections, syntax highlighting, and contextual data inspection).Legacy System Modernization:
Twig Template Debugging:
Error Tracking & Observability:
Education & Onboarding:
Avoid If:
%kernel.debug%).Consider Alternatives If:
*"This is a low-effort, high-impact tool to supercharge our developers’ debugging speed. By replacing clunky var_dump calls with a clean, collapsible output system (like Chrome DevTools for PHP), we can:
*"LadybugBundle is a Symfony2-specific var_dump replacement that:
composer require).kernel.debug).
Proposal: Add to our dev tooling stack and document it in the onboarding guide. Low lift, high ROI."**"Imagine var_dump on steroids:
var_dump($user->roles) with ld($user->roles) in controllers or {{ user|ld }} in Twig.composer require raulfraile/ladybug-bundleAppKernel.php (Symfony2).ld() or ladybug_dump() anywhere.
Note: Disable in production (%kernel.debug%: false)."*How can I help you explore Laravel packages today?