PHPackages                             danieljharvey/plop-catcher - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. danieljharvey/plop-catcher

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

danieljharvey/plop-catcher
==========================

Drop-in error catcher and general logger

1.7.1(8y ago)0304MITPHP

Since Jun 11Pushed 8y agoCompare

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

READMEChangelog (9)Dependencies (2)Versions (10)Used By (0)

plop-catcher
============

[](#plop-catcher)

Make errors and logging and etc much nicer.

Better error catching and logging. Usage:

Plop($outputMode, $callbackFunction);

$outputMode can be 'HTML', 'JSON' or 'ARRAY' $callbackFunction will receive html, json or a PHP array, and is called if a fatal error uncaught exception stops execution allowing graceful error screens or debug output.

The HTML output will be initially invisible - press Shift-Enter to show or hide output.

```
$plop = new \DanielJHarvey\PlopCatcher\Plop('HTML',function($html) {
    outputHTML($html);
});
$plop->enable();

// code that will be executed

// blah blah blah blah blah blah

// end of code

// output debugging info in chosen format
outputHTML($plop->output());

function outputHTML(html) {
    echo $html;
}

```

Other things

```
$plop->logComment($message);

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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 ~7 days

Total

9

Last Release

3248d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4729125?v=4)[Daniel Harvey](/maintainers/danieljharvey)[@danieljharvey](https://github.com/danieljharvey)

---

Top Contributors

[![danieljharvey](https://avatars.githubusercontent.com/u/4729125?v=4)](https://github.com/danieljharvey "danieljharvey (23 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/danieljharvey-plop-catcher/health.svg)

```
[![Health](https://phpackages.com/badges/danieljharvey-plop-catcher/health.svg)](https://phpackages.com/packages/danieljharvey-plop-catcher)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M262](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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