man-85/yii2-dumper

Yii2 dumper function


Keywords
php, yii2, yii2-debug
License
GPL-3.0

Documentation

Debugging shortcut for Yii2

This package wrap VarDumper::dump() to d(), dd() functions as a shortcut.

Installation

Install With Composer

The preferred way to install this extension is through composer.

Either run

composer require man-85/yii2-dumper "*"

Or, you may add

"man-85/yii2-dumper": "*"

to the require section of your composer.json file and execute php composer.phar update.

Install From the Archive

Download the latest release from here releases, then extract it to your project.

Usage

Since for the sake of Simplicity and Quick Development, I’ve created a helper for those who use Yii. You can just call dd($var1); for dump & die or d($var1); for dump data.

d($var);
dd($var);