widewhale/yii2-debug-vardumper Vardumper panel for yii2-debug

extensionyii2-debugpanelvardumper

VarDumper panel for Yii2-debug

This extensions adds a panel which show var dumps using custom VarDumper::dump($var) function.

Installation

Install extention via composer command:

composer require widewhale/yii2-debug-vardumper

Then add panel to your debug config:

'modules'=>[
    ...
    'debug'=>[
        ...
        'panels'=>[
            ...
            'vardumper'=>[
                'class'=>'\widewhale\debug\vardumper\panels\VarDumperPanel'
            ]
        ]
    ]
    ...
]

Usage

...

use widewhale\debug\vardumper\components\VarDumper;

...

VarDumper::dump($var);

Since class name same as yii\helpers\VarDumper you basicly can just replace yii\helpers\VarDumper with widewhale\debug\vardumper\components\VarDumper if you're used default VarDumper helper previously.

IMPORTANT If you want to use yii\helpers\VarDumper and widewhale\debug\vardumper\components\VarDumper simultaneously you should use aliases (or fully qualified namespace names)

use widewhale\debug\vardumper\components\VarDumper;
use yii\helpers\VarDumper as YiiVarDumper;

...

VarDumper::dump($var);
YiiVarDumper::dump($var);

OR

\widewhale\debug\vardumper\components\VarDumper::dump($var);

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v1.2.1 is the latest of 4 releases



MIT license
Stats
1 github stars & 0 github forks
1 downloads in the last day
20 downloads in the last 30 days
917 total downloads