jiboule/ddump

Dump your variables and stop the execution of the script.

Maintainers

Package info

github.com/jiboule/ddump

Homepage

Type:package

pkg:composer/jiboule/ddump

Statistics

Installs: 197

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.1 2018-04-18 08:13 UTC

This package is auto-updated.

Last update: 2026-03-09 17:01:20 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);