PHPackages                             tigerman55/sentry-delegator - 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. tigerman55/sentry-delegator

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

tigerman55/sentry-delegator
===========================

Mezzio Delegator for Sentry

2.0(5y ago)42.0kBSD-3-ClausePHPPHP ^7.2

Since Mar 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Tigerman55/SentryDelegator)[ Packagist](https://packagist.org/packages/tigerman55/sentry-delegator)[ RSS](/packages/tigerman55-sentry-delegator/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (9)Versions (8)Used By (0)

SentryDelegator
===============

[](#sentrydelegator)

This is a mezzio delegator for the service [Sentry](https://sentry.io) utilizing Sentry's latest PHP SDK. The only required config is your Sentry project DSN. You can optionally add an environment, which will automatically be registered in your expressive application. Below is an example config.

```
return [
  'sentry' => [
    'dsn' => '[project dsn]',
    'environment' => '[environment]',
  ],
];
```

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

[](#installation)

You can install SentryDelegator using Composer:

```
$ composer require tigerman55/sentry-delegator
```

Configuration
-------------

[](#configuration)

To bind your configuration to Sentry, you'll need to invoke the following somewhere early in your application. One option, is to put this in index.php right after the container initialization.

```
(new ConfigureSentry())($container->get('config'))
```

Advanced Usage
--------------

[](#advanced-usage)

You can roll your own error listener by implementing `ErrorListenerInterface`. I've also created `AsyncErrorListener` to flush errors for asynchronous applications such as react-php and swoole. You can utilize this in your config.

Sentry context is supported with this delegator. To add context, simply add the following in the appropriate middleware:

```
Sentry\configureScope(function (Scope $scope) use ($context) : void {
    $scope->setUser([
        'email'    => $context['email'],
        'username' => $context['username'],
    ]);
});
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Recently: every ~143 days

Total

6

Last Release

2002d ago

Major Versions

0.1.0 → 1.02019-06-06

1.3 → 2.02020-12-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7062093?v=4)[Joseph Koch](/maintainers/Tigerman55)[@Tigerman55](https://github.com/Tigerman55)

---

Top Contributors

[![Tigerman55](https://avatars.githubusercontent.com/u/7062093?v=4)](https://github.com/Tigerman55 "Tigerman55 (19 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/tigerman55-sentry-delegator/health.svg)

```
[![Health](https://phpackages.com/badges/tigerman55-sentry-delegator/health.svg)](https://phpackages.com/packages/tigerman55-sentry-delegator)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[moonshine/moonshine

Laravel administration panel

1.3k239.9k75](/packages/moonshine-moonshine)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[pagemachine/typo3-formlog

Form log for TYPO3

23233.9k7](/packages/pagemachine-typo3-formlog)

PHPackages © 2026

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