sfKrumoPlugin - 1.0.3

Nice replacement to print_r() and var_dump() functions.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

sfKrumoPlugin

The sfKrumoPlugin is a symfony plugin that uses Krumo (http://krumo.sourceforge.net/) to implement a nice replacement for print_r() and var_dump() functions.

Installation

  • Install the plugin (via a package)

    symfony plugin:install sfKrumoPlugin
    
  • Activate the plugin in the config/ProjectConfiguration.class.php

    class ProjectConfiguration extends sfProjectConfiguration
    {
      public function setup()
      {
        ...
        $this->enablePlugins('sfKrumoPlugin');
        ...
      }
    }

How to use

  • Here's a basic PHP example, which will return a report on the array variable passed as argument to it

    krumo(array('a1'=> 'A1', 3, 'red'));
  • You can dump simultaneously more then one variable - here's another PHP example:

    krumo($_SERVER, $_ENV);