PHPackages                             sanderdlm/mandarin - 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. sanderdlm/mandarin

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

sanderdlm/mandarin
==================

GitHub-based error reporting and tracking library

0.1.0(7mo ago)1195↓50%[1 issues](https://github.com/sanderdlm/mandarin/issues)MITPHPPHP ^8.2CI passing

Since Dec 15Pushed 1mo agoCompare

[ Source](https://github.com/sanderdlm/mandarin)[ Packagist](https://packagist.org/packages/sanderdlm/mandarin)[ RSS](/packages/sanderdlm-mandarin/feed)WikiDiscussions main Synced 2w ago

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

Mandarin 🍊
==========

[](#mandarin-)

GitHub-based error reporting and tracking library for PHP.

Like Sentry, but hosted on GitHub for free.

Features
--------

[](#features)

- Zero dependencies
- Automatic GitHub issue creation for uncaught exceptions
- Deduplication of issues using fingerprints
- Includes code context, method parameters, and stack traces
- Tracks occurrence counts and timestamps
- Reopens closed issues when errors recur
- Integrates nicely with Copilot to tackle issues

Requirements
------------

[](#requirements)

- PHP 8.2+
- ext-curl

Installation
------------

[](#installation)

```
composer require sanderdlm/mandarin
```

Setup
-----

[](#setup)

Create a GitHub Personal Access Token at  with `repo` scope.

```
use Mandarin\ErrorHandler;
use Mandarin\Reporter;

$reporter = new Reporter(
    token: $_ENV['GITHUB_TOKEN'],
    repository: 'owner/repo'
);

(new ErrorHandler($reporter))->register();
```

Example
-------

[](#example)

Take a look at the [first issue in this repository](https://github.com/sanderdlm/mandarin/issues/1).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance59

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

227d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/179d3921ac9d44fa878e41369464e08f45f322cde7fcc6d3764dc7268f25e0b7?d=identicon)[sanderdlm](/maintainers/sanderdlm)

---

Top Contributors

[![sanderdlm](https://avatars.githubusercontent.com/u/24303072?v=4)](https://github.com/sanderdlm "sanderdlm (7 commits)")

---

Tags

copiloterror-trackinggithubloggingmonitoringphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sanderdlm-mandarin/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

2041.5M293](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2428.5M363](/packages/open-telemetry-sdk)

PHPackages © 2026

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