oodle/krumo-bundle

This package is abandoned and no longer maintained. The author suggests using the mmucklo/krumo-bundle package instead.

Hooks for using KRUMO from within Symfony -- KRUMO - version 2.0 of print_r(); and var_dump();

Maintainers

Details

github.com/oodle/KrumoBundle

Source

Installs: 15 647

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 3

Type:symfony-bundle

v1.0.2 2014-12-05 03:08 UTC

This package is auto-updated.

Last update: 2022-02-01 12:23:09 UTC


README

Hooks for using krumo within Symfony2

Krumo is basically a cascading visual var dump tool. If you don't know what it is, you can peruse some documentation here: http://krumo.sourceforge.net/

NOTE - Built on this fork of krumo:

https://github.com/oodle/krumo

Usage:

php

krumo($something); // Dumps krumo output of that variable from that point

twig

{{ someVar | krumo }} {# Dumps krumo output of someVar #}
{{ krumo(someVar) }} { # Dumps krumo output of someVar #}
{{ krumo(someVar, [2, 1, 2]) }} {# Dumps krumo output of someVar with collapse settings of [2, 1, 2]

Installation:

Add this line to your composer.json "require" section:

composer.json

    "require": {
       ...
       "oodle/krumo-bundle": "*"

Add this to your AppKernel.php (in the registerBundles() section):

app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        // ...
        new Oodle\KrumoBundle\OodleKrumoBundle()
    }

app/config/routing.yml

KrumoBundle:
    resource: "@OodleKrumoBundle/Resources/config/routing/routing.yml"
    prefix:   /

Configuration:

config.yml

oodle_krumo:
    skin:
        selected: schabalon.com
    css:
        url: /krumo/
    display:
        show_version: true
        show_call_info: true
        cascade: [5,10]

Parameters

  • skin
    • selected
      • (Skin to use for krumo)
  • css
    • url
      • (URL for accessing the krumo assets. Don't modify unless you know what you are doing)
  • display
    • show_version
      • (Whether or not to show the krumo version and link at the bottom)
    • show_call_info
      • (Whether or not to show the line number / call info at the bottom)
    • cascade
      • Array of auto-expand options per level (don't use to keep things collapsed by default)
        • Each entry in the array represents a recursion level, at which if there are that number of nodes or less, then it will default to being expanded