Skip to content

chauve-dev/exotic_dumper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exotic dumper

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

About

a custom php dumper to display dump in new ways

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages