2017 © Pedro Peláez
 

symfony-bundle krumo-bundle

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

image

oodle/krumo-bundle

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

  • Friday, December 5, 2014
  • by mmucklo
  • Repository
  • 2 Watchers
  • 0 Stars
  • 14,366 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

KrumoBundle

Hooks for using krumo within Symfony2, (*1)

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/, (*2)

NOTE - Built on this fork of krumo:

https://github.com/oodle/krumo, (*3)

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:, (*4)

composer.json

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

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

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

The Versions

05/12 2014

dev-master

9999999-dev

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

  Sources   Download

LGPL

The Requires

 

by Matthew J. Mucklo

debug symfony2 debugging print print_r var_dump pretty krumo krumobundle

05/12 2014

v1.0.2

1.0.2.0

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

  Sources   Download

LGPL

The Requires

 

by Matthew J. Mucklo

debug symfony2 debugging print print_r var_dump pretty krumo krumobundle

02/06 2014

v1.0.1

1.0.1.0

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

  Sources   Download

LGPL

The Requires

 

by Matthew J. Mucklo

debug symfony2 debugging print print_r var_dump pretty krumo krumobundle

04/12 2013

v1.0.0

1.0.0.0

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

  Sources   Download

LGPL

The Requires

 

by Matthew J. Mucklo

debug symfony2 debugging print print_r var_dump pretty krumo krumobundle