bonsaicode / debug
Debug utility class providing an improved version of print_r that shows variable types, and trace and hex_dump methods.
1.0.6
2026-11-14 17:18 UTC
Requires
- php: >=7.1
Requires (Dev)
- phpunit/phpunit: ^9.6 || ^10.5 || ^11.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Debug utility class providing an improved version of print_r that shows variable types, and trace and hex_dump methods.
Requirements
- PHP 7.1 or higher
Installation
To install the module, run the following command in the console:
$ composer require "bonsaicode/debug"
Usage
<?php
BonsaiCode\Debug::printR( $mixed );
echo BonsaiCode\Debug::hex_dump( 'This is a test for hex_dump() returning a string.' );
echo BonsaiCode\Debug::trace( [ 'string' ] );
?>