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

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

slabphp/debug
=============

SlabPHP Debug Library

v0.1.0(8y ago)0171Apache-2.0PHP

Since Feb 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/SlabPHP/debug)[ Packagist](https://packagist.org/packages/slabphp/debug)[ Docs](https://www.salernolabs.com/slab)[ RSS](/packages/slabphp-debug/feed)WikiDiscussions master Synced 2w ago

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

SlabPHP Debug
=============

[](#slabphp-debug)

The debug library adds a simple interface to collect information for inclusion in the SlabPHP debug toolbar.

Usage
-----

[](#usage)

Include this project

```
composer require slabphp/debug

```

Benchmarks
----------

[](#benchmarks)

You can start and end a benchmark with:

```
$debug = new \Slab\Debug\Manager();

$debug->startBenchmark('starting up');

// do some stuff

$debug->endBenchmark('starting up');

```

The results of that benchmark will be returned when you do -&gt;getBenchmarks();

Messages
--------

[](#messages)

You can add debug messages with:

```
$debug->addMessage("Something happened!", "CONTROLLER");

```

When you do -&gt;getMessages() an entry will be in the "CONTROLLER" context with a timestamp.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3052d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/155974?v=4)[Eric Salerno](/maintainers/ericsalerno)[@ericsalerno](https://github.com/ericsalerno)

---

Top Contributors

[![ericsalerno](https://avatars.githubusercontent.com/u/155974?v=4)](https://github.com/ericsalerno "ericsalerno (1 commits)")

---

Tags

phpdebugslabslabphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jbzoo/jbdump

Script for debug and dump PHP variables and other stuff. This tool is a nice replacement for print\_r() and var\_dump() functions.

191.1M3](/packages/jbzoo-jbdump)[h4cc/phpqatools

A meta composer package for PHP QA Tools.

6118.6k1](/packages/h4cc-phpqatools)

PHPackages © 2026

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