bonsaicode/debug

Debug utility class providing an improved version of print_r that shows variable types, and trace and hex_dump methods.

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

pkg:composer/bonsaicode/debug

1.0.5 2020-05-13 02:47 UTC

This package is auto-updated.

Last update: 2025-10-13 15:46:23 UTC


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' ] );

?>