jeantet/exotic_dumper

A composer package to dump var in new ways.

1.0.7 2022-09-27 09:24 UTC

This package is auto-updated.

Last update: 2024-04-27 13:10:19 UTC


README

This package allow you to dump data in new ways. It's based on symfony serializer and dumper.

Functions

Currently there is only two functions One to display the dump in a small window on the page

pretty_dump

the parameters are :

  • array|object : data to print
  • bool : should hide by default the dump (display it in line on the bottom of the page)
  • string : name of the dump (it should display in the titlebar of the dump)
<?php
pretty_dump($data, true, 'name of dump');
?>

console_dump

the parameters are :

  • array|object : data to print
  • string : name the group log
  • string : type of log you wanna use see MDN doc for console
<?php
console_dump($var, 'log for item x', 'log');
?>

Demo

Animation