PHPackages                             nicolas-cajelli/slim-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. nicolas-cajelli/slim-newrelic

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

nicolas-cajelli/slim-newrelic
=============================

0.1.0(8y ago)172MITPHPPHP &gt;=7.0

Since Aug 24Pushed 8y agoCompare

[ Source](https://github.com/nicolas-cajelli/slim-newrelic)[ Packagist](https://packagist.org/packages/nicolas-cajelli/slim-newrelic)[ RSS](/packages/nicolas-cajelli-slim-newrelic/feed)WikiDiscussions master Synced yesterday

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

Slim NewRelic
=============

[](#slim-newrelic)

Newrelic implementation for slim framework

Install
-------

[](#install)

```
composer require nicolas-cajelli/slim-newrelic
```

Setup
-----

[](#setup)

```
$config['responseHandlers'] = function(ContainerInterface $c) {
    return [
        $c->get(BadRequestJsonResponseHandler::class),
        $c->get(NewrelicResponseHandler::class),
    ];
};

$app->add(NewRelicTransactionMiddleware::class);
```

Configure (optional)
--------------------

[](#configure-optional)

If you want to define your own appName + licenseKey:

```
$config['settings']  = [
    // ...
    'newRelic' => [
        'licenseKey' => 'your-license',
        'appName' => 'your-app'
    ]
    // ...
];
```

Advanced
--------

[](#advanced)

- Provide your own implementations for naming and/or decorators

```
$config[NewRelicTransactionMiddleware::class] = function(ContainerInterface $c) {
    $middleware = new NewRelicTransactionMiddleware($c);
    $middleware->addTransactionDecorator(CustomDecorator::class);
    $middleware->setTransactionNaming(CustomNamingPolicy::class);
    return $middleware;
};
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

3183d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6450d369b80b0ab9b0c4dd260e46d069a6a2ffdfaccd9dc82271cedb71b19dd?d=identicon)[nicolas-cajelli](/maintainers/nicolas-cajelli)

---

Tags

slimnewrelic

### Embed Badge

![Health badge](/badges/nicolas-cajelli-slim-newrelic/health.svg)

```
[![Health](https://phpackages.com/badges/nicolas-cajelli-slim-newrelic/health.svg)](https://phpackages.com/packages/nicolas-cajelli-slim-newrelic)
```

###  Alternatives

[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[intouch/laravel-newrelic

Laravel 5 NewRelic Integration

1731.2M](/packages/intouch-laravel-newrelic)[intouch/newrelic

Namespaced Wrapper for NewRelic PHP Agent

373.8M15](/packages/intouch-newrelic)[contributte/newrelic

NewRelic PHP agent integration for Nette Framework

19822.4k](/packages/contributte-newrelic)[bazilio/yii2-newrelic

Newrelic integration for Yii2

23399.4k](/packages/bazilio-yii2-newrelic)[neeckeloo/newrelic

NewRelic module for Laminas

32207.2k](/packages/neeckeloo-newrelic)

PHPackages © 2026

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