PHPackages                             unreal4u/debug-info - 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. unreal4u/debug-info

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

unreal4u/debug-info
===================

This class is a collection of functions that aids in debugging your application

v2.0.1(12y ago)0702MITPHPPHP &gt;=5.3.0

Since Mar 10Pushed 12y agoCompare

[ Source](https://github.com/unreal4u/debug-info)[ Packagist](https://packagist.org/packages/unreal4u/debug-info)[ RSS](/packages/unreal4u-debug-info/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (2)

debugInfo.class.php
===================

[](#debuginfoclassphp)

Credits
-------

[](#credits)

This class is made by unreal4u (Camilo Sperberg). [http://unreal4u.com/](unreal4u.com).

About this class
----------------

[](#about-this-class)

- When debugging, you need sometimes to check what's in a certain variable. This class does print that information
- It will have in special consideration the type of the variable you're printing: as such it will clearly indicate whether you're printing a boolean, empty string or even null
- Printing to screen is not practical? Print it to a file instead
- Tired of triggering errors? Convert them easily to exceptions with just one function call. From now on, every error will be converted to an exception instead
- Want to know how many time or memory a functionality in your script takes? Measure several of these benchmarks easily with this class!
- Format a unix timestamp? You can also do that easily with this class!

Basic usage
-----------

[](#basic-usage)

```
include('debugInfo.class.php');
debug($variable);
```

- Congratulations! You have just printed something to your screen!
- **Please see documentation folder for more options and advanced usage**

Version History
---------------

[](#version-history)

- 0.1 :

    - Original class
- 0.2 :

    - Many improvements, such as:
        - General cleanup
        - Code is now more consistent
        - Extensively tested
- 0.3 :

    - Changed defaults to a much better representation
    - More checks for debugFirePHP
- 1.0 :

    - Integrated old class "benchmark" into this one
    - Some minor bug fixes
- 2.0 :

    - Compatible with composer
    - Refined auto-format output

Contact the author
------------------

[](#contact-the-author)

- Twitter: [@unreal4u](http://twitter.com/unreal4u)
- Website:
- Github:

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

4496d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43792f8b224d7de339a848cd799635fa8e062eea3fb669e3ca7a1d1e2cff756d?d=identicon)[unreal4u](/maintainers/unreal4u)

---

Top Contributors

[![unreal4u](https://avatars.githubusercontent.com/u/194999?v=4)](https://github.com/unreal4u "unreal4u (10 commits)")

### Embed Badge

![Health badge](/badges/unreal4u-debug-info/health.svg)

```
[![Health](https://phpackages.com/badges/unreal4u-debug-info/health.svg)](https://phpackages.com/packages/unreal4u-debug-info)
```

PHPackages © 2026

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