provolik/debugvar

Debugvar is a PHP library to debug variables.

Installs: 61

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/provolik/debugvar

1.0.1 2017-04-11 17:50 UTC

This package is not auto-updated.

Last update: 2025-11-01 00:28:52 UTC


README

How many time did you write:

echo '<pre>';
print_r($array);
echo '</pre>';

I am quite sure you know what I mean. So I created the debugVar function.

Installation

You can install it using composer from command line:

composer require provolik/debugvar

How to use

If you want know the content of your var, simply put it in the function, like this:

debugvar($variables);

You can pass to it how many vars you want:

debugvar($var1, $var2, $var3, $var4);

Often you need to show the var and then call a die:

debugvar_die($variables);

In other circumstances, for example in production environment, you need to print a var in hide mode:

debugvar_hide($variables);

And that's all.