print_r() and var_dump() alternative

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Leeoniya
Forum Newbie
Posts: 8
Joined: Wed Apr 16, 2008 2:19 am

print_r() and var_dump() alternative

Post by Leeoniya »

Hey guys,

I wrote a debugging tool for myself that's a drop-in replacement for print_r() and var_dump() functions. It's called dump_r() and started out as a single file, but has evolved into a structured, minimalist and extendable dumper. It can be used via a simple 'require' or through Composer. If anyone's interested in the full docs, please visit the Github repo's home page. Below is a screenshot of the output that shows off a lot of its features. Pull requests and additional CSS themes are always welcome. Hope someone finds it useful.

cheers!

repo & docs: https://github.com/leeoniya/dump_r.php
live demo: http://o-0.me/dump_r/
composer: https://packagist.org/packages/leeoniya/dump-r
sample output:

Image
Leeoniya
Forum Newbie
Posts: 8
Joined: Wed Apr 16, 2008 2:19 am

Re: print_r() and var_dump() alternative

Post by Leeoniya »

recently updated for PHP 7.0, PSR-4 and much-improved unicode string support :)
Post Reply