tuhin18003 / advance-var-dumper
Advance way of dumping PHP variables
Installs: 221
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/tuhin18003/advance-var-dumper
Requires
- php: >=7.2.5
This package is auto-updated.
Last update: 2025-11-21 17:50:34 UTC
README
The Advance Var Dumper component provides mechanisms for walking through any arbitrary
PHP variable. It provides a better pre_print() function that you can use instead
of print_r().
Install
Via Composer
$ composer require --dev tuhin18003/advance-var-dumper
Usage
require './vendor/autoload.php';
It takes 2 parameters. First one is your data ( array/ object/ string) and second can be any string as flag!
pre_print( $data = '', $text = '' )
$arr =['test','te1','hello'];
pre_print($arr);
Output
------------------------------DEBUG MODE START------------------------------
File Name: E:\webApps\xampp-new-64\htdocs\my-websites\custom-scripts\myScripts.php
Line No: 30
Array
(
[0] => test
[1] => te1
[2] => hello
)
------------------------------DEBUG MODE END------------------------------
Credentials
- Created by - M.Tuhin