2017 © Pedro Peláez
 

symfony-bundle krumo-bundle

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

image

mmucklo/krumo-bundle

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

  • Wednesday, February 10, 2016
  • by mmucklo
  • Repository
  • 3 Watchers
  • 7 Stars
  • 6,672 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 9 Versions
  • 10 % Grown

The README.md

KrumoBundle

Hooks for using krumo within Symfony2 or Symfony3, (*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/mmucklo/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": {
       ...
       "mmucklo/krumo-bundle": "*"

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

app/AppKernel.php

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

app/config/routing.yml

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

Configuration:

config.yml

mjm_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

License

MIT, (*6)

See Resources/meta/LICENSE., (*7)

The Versions

10/02 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Matthew J. Mucklo

debug symfony2 symfony3 debugging print print_r var_dump pretty krumo krumobundle

10/02 2016

v1.0.7

1.0.7.0

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

  Sources   Download

MIT

The Requires

 

by Matthew J. Mucklo

debug symfony2 symfony3 debugging print print_r var_dump pretty krumo krumobundle

03/02 2016

v1.0.6

1.0.6.0

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

  Sources   Download

LGPL

The Requires

 

by Matthew J. Mucklo

debug symfony2 symfony3 debugging print print_r var_dump pretty krumo krumobundle

28/01 2016

v1.0.5

1.0.5.0

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

  Sources   Download

LGPL

The Requires

 

by Matthew J. Mucklo

debug symfony2 symfony3 debugging print print_r var_dump pretty krumo krumobundle

28/01 2016

v1.0.4

1.0.4.0

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

  Sources   Download

LGPL

The Requires

 

by Matthew J. Mucklo

debug symfony2 symfony3 debugging print print_r var_dump pretty krumo krumobundle

28/01 2016

v1.0.3

1.0.3.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 symfony3 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