jiboule/ddump

Dump your variables and stop the execution of the script.

1.1.1 2018-04-18 08:13 UTC

This package is auto-updated.

Last update: 2024-05-09 12:49:05 UTC


README

This is just an overlay to the Symfonys' var-dumper component to dump variable(s) and stop the script execution right away.

Installation

$ composer require --dev jiboule/ddump

The --dev option is important as you don't wanna use dump in production.

Usage

dump($bar); // the var-dumper function dumps the var, below code will be executed


ddump($myVar); // dumps the var

// nothing below will be executed

You can also dump several variables

ddump($foo, $bar, $another);