PHPackages                             los/mezzio-swoole-newrelic - 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. los/mezzio-swoole-newrelic

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

los/mezzio-swoole-newrelic
==========================

A PHP lib to enable Newrelic with mezzio/expressive + swoole

1.1.1(6y ago)1616MITPHPPHP ^7.2

Since Dec 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Lansoweb/mezzio-swoole-newrelic)[ Packagist](https://packagist.org/packages/los/mezzio-swoole-newrelic)[ RSS](/packages/los-mezzio-swoole-newrelic/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Mezzio Swoole Newrelic
======================

[](#mezzio-swoole-newrelic)

This lib enables Newrelic transactions and errors when using PHP with Swoole.

### Installation

[](#installation)

```
composer require los/mezzio-swoole-newrelic

```

### Configuration

[](#configuration)

This lib provides a ConfigProvider.php and should be injected inside your config.php. Just be sure that it's after the default Swoole module:

```
    // Swoole config to overwrite some services (if installed)
    class_exists(\Mezzio\Swoole\ConfigProvider::class)
        ? \Mezzio\Swoole\ConfigProvider::class
        : function () {
            return[];
        },
    \Los\MezzioSwooleNewrelic\ConfigProvider::class,
```

The lib will get newrelic's appname and license from the ini using ini\_get, but you can define an environment var NEWRELIC\_APPNAME to be used instead of the newrelic.appname ini setting.

There is also a NewRelicMiddleware that will name the transactions with the zend-expressive-router router names. Just include inside your pipeline.php after the RouterMiddleware:

```
$app->pipe(RouteMiddleware::class);
$app->pipe(NewRelicMiddleware::class);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

3

Last Release

2282d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b54dffc1ebcb317a0cf825a781ab6c5f30980e9abd0d0a3f9c68830cb05c014?d=identicon)[Lansoweb](/maintainers/Lansoweb)

---

Top Contributors

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

---

Tags

expressivemezzionewrelicphpswoolezend

### Embed Badge

![Health badge](/badges/los-mezzio-swoole-newrelic/health.svg)

```
[![Health](https://phpackages.com/badges/los-mezzio-swoole-newrelic/health.svg)](https://phpackages.com/packages/los-mezzio-swoole-newrelic)
```

###  Alternatives

[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2222.9M248](/packages/open-telemetry-sdk)[pagemachine/typo3-formlog

Form log for TYPO3

23225.3k6](/packages/pagemachine-typo3-formlog)[open-telemetry/opentelemetry-auto-wordpress

OpenTelemetry auto-instrumentation for Wordpress

17166.0k](/packages/open-telemetry-opentelemetry-auto-wordpress)[los/loslog

LosLog provides some log utility

1751.2k2](/packages/los-loslog)[oras/monolog-middleware

PSR-7 Monolog Middleware

2012.1k](/packages/oras-monolog-middleware)

PHPackages © 2026

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