PHPackages                             provolik/debugvar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. provolik/debugvar

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

provolik/debugvar
=================

Debugvar is a PHP library to debug variables.

1.0.1(9y ago)163MITPHPPHP &gt;=5.3.3

Since Apr 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/provolik/debugvar)[ Packagist](https://packagist.org/packages/provolik/debugvar)[ RSS](/packages/provolik-debugvar/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

DEBUG VAR FUNCTION FOR PHP
--------------------------

[](#debug-var-function-for-php)

How many time did you write:

```
echo '';
print_r($array);
echo '';
```

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

### Installation

[](#installation)

You can install it using composer from command line:

composer require provolik/debugvar

### How to use

[](#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.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

3368d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6933407?v=4)[provolik](/maintainers/provolik)[@provolik](https://github.com/provolik)

---

Top Contributors

[![provolik](https://avatars.githubusercontent.com/u/6933407?v=4)](https://github.com/provolik "provolik (23 commits)")[![drAlberT](https://avatars.githubusercontent.com/u/1442700?v=4)](https://github.com/drAlberT "drAlberT (3 commits)")

---

Tags

debugprint\_rvardump

### Embed Badge

![Health badge](/badges/provolik-debugvar/health.svg)

```
[![Health](https://phpackages.com/badges/provolik-debugvar/health.svg)](https://phpackages.com/packages/provolik-debugvar)
```

###  Alternatives

[symfony/var-dumper

Provides mechanisms for walking through any arbitrary PHP variable

7.4k904.9M9.4k](/packages/symfony-var-dumper)[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.3k133.0M730](/packages/barryvdh-laravel-debugbar)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k29.8M65](/packages/php-debugbar-php-debugbar)[kint-php/kint

Kint - Advanced PHP dumper

2.8k20.2M303](/packages/kint-php-kint)[tracy/tracy

😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.

1.8k25.1M1.5k](/packages/tracy-tracy)[mmucklo/krumo

KRUMO - version 2.0 of print\_r(); and var\_dump(); (with new updates)

94171.6k6](/packages/mmucklo-krumo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
