ymm1x/xdump

A variable dumper utility provides readability and flexibility instead of var_dump()

1.0.8 2019-09-20 03:43 UTC

This package is auto-updated.

Last update: 2024-05-20 13:41:20 UTC


README

This variable dumper utility provides readability and flexibility instead of var_dump().

  • Shorthand function will be declared just by installing the package.
    • Usage: d($var1, $var2, $var3)
  • The file name and line number of the dump source are also output together.
  • Decoration with HTML and CSS.
    • When executed from the shell, it is omitted and becomes simple output.

Screen shot

Screen shot

Long vertically output is scrollable.

Installation

composer require ymm1x/xdump

Usage

Variable-length arguments are supported.

Shorthand

d($var1, $var2, $var3);

Longhand

\Ymm1x\XDump\Dumper::dump($var1, $var2, $var3);

License

This library is released under the MIT license.