alexeyplodenko/symfony-php-dumper

The package provides a simple dump function, based on the Symfony VarDumper package, to output the variables and stop execution.

Installs: 1 110

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/alexeyplodenko/symfony-php-dumper

1.0.11 2024-12-04 07:40 UTC

This package is auto-updated.

Last update: 2026-02-04 10:00:25 UTC


README

The package provides a simple dump d($yourFirstVar, $yourSecondVar,..); function, based on the Symfony VarDumper package, to output the variables and stop execution. The output happens to the browser and console at the same time.

Browser with Console output comparison

Motivation

  • To have an output to both the browser and CLI (like Docker logs) at the same time.
  • To have a stack trace to be able to find where I have left the d() function.
  • To ignore d() on production and staging environments. So if the function is still there in the code, it would not affect the runtime.
  • To have a compact debug output, not affected by any HTML or CSS.

d() vs dd() output comparison