PHPackages                             dominicwatts/magentodump - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dominicwatts/magentodump

ActiveMagento2-module

dominicwatts/magentodump
========================

Magento with Symfony VarDumper replacement to Zend\_Debug

1.0.1(6y ago)32743proprietaryPHP

Since Jul 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/DominicWatts/MagentoDump)[ Packagist](https://packagist.org/packages/dominicwatts/magentodump)[ RSS](/packages/dominicwatts-magentodump/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

Magento 2 Symfony VarDumper
===========================

[](#magento-2-symfony-vardumper)

Magento with Symfony VarDumper replacement to Zend\_Debug

Install demo instructions
=========================

[](#install-demo-instructions)

`composer require dominicwatts/magentodump`

`php bin/magento setup:upgrade`

Go to `/xigen_magentodump/index/dump` to see some of the possibilities

Install VarDumper instructions
==============================

[](#install-vardumper-instructions)

`composer require symfony/var-dumper`

Usage Instructions
==================

[](#usage-instructions)

Can be used as part of a class

```
use Symfony\Component\VarDumper\VarDumper;

/**
 * Class Dump
 * @package Xigen\MagentoDump\Block\Index
 */
class Dump extends \Magento\Framework\View\Element\Template
{
    /**
     * Constructor
     * @param \Magento\Framework\View\Element\Template\Context $context
     * @param array $data
     */
    public function __construct(
        \Magento\Framework\View\Element\Template\Context $context,
        array $data = []
    ) {
        parent::__construct($context, $data);
    }

    /**
     * Dump the variable
     * @param $dumpMe mixed
     */
    public function dump($dumpMe)
    {
        VarDumper::dump($dumpMe);
    }
}
```

Or within phtml

```
Hello index/dump.phtml
