PHPackages                             laranex/laravel-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. laranex/laravel-newrelic

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

laranex/laravel-newrelic
========================

A Laravel package to integrate New Relic APM with Laravel

v1.0.0(1y ago)028.5k—4.4%Apache-2.0PHPPHP ^7.4|^8.0

Since Aug 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/laranex/laravel-newrelic)[ Packagist](https://packagist.org/packages/laranex/laravel-newrelic)[ Docs](https://github.com/laranex/laravel-newrelic)[ RSS](/packages/laranex-laravel-newrelic/feed)WikiDiscussions main Synced today

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

Laravel New Relic
=================

[](#laravel-new-relic)

Laravel New Relic is a package that provides a custom log channel for New Relic. It also includes listeners to split Octane transactions into individual job and event transactions.

Why we use Laravel Newrelic Instead of New Relic Monolog Enricher?
------------------------------------------------------------------

[](#why-we-use-laravel-newrelic-instead-of-new-relic-monolog-enricher)

The [New Relic Monolog Enricher](https://github.com/newrelic/newrelic-monolog-logenricher-php) is not compatible with Monolog 3.0, and it has not been updated to address this issue. To overcome this limitation, I created this package to provide a custom log channel specifically designed for New Relic.

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

[](#installation)

Before installing the Laravel New Relic package, make sure you have the [New Relic PHP agent](https://docs.newrelic.com/docs/agents/php-agent/getting-started/introduction-new-relic-php) installed on your server.

To install the Laravel New Relic package, follow these steps:

1. Install the package via Composer:

    ```
    composer require laranex/laravel-newrelic
    ```
2. Change the log channel in your `.env` file:

    ```
    LOG_CHANNEL=newrelic
    ```
3. (Optional) Configure your New Relic application name and license key in your `.env` file:

    ```
    NEW_RELIC_API_KEY="your_license_key"
    ```

    These values will be automatically picked up by the package.

Changelog
---------

[](#changelog)

For detailed information on recent changes, please see the [CHANGELOG](CHANGELOG.md).

Contributing
------------

[](#contributing)

We welcome contributions! Please see the [CONTRIBUTING](CONTRIBUTING.md) guide for more details.

Security
--------

[](#security)

If you discover any security issues, please report them in accordance with our security policy outlined in the [CONTRIBUTING](CONTRIBUTING.md) guide.

Credits
-------

[](#credits)

- [New Relic Monolog Enricher](https://github.com/newrelic/newrelic-monolog-logenricher-php)

Contributors
------------

[](#contributors)

- [Soe Thura](https://github.com/thixpin)
- [Paing Soe Htike](https://github.com/paisoedev)
- [Nay Thu Khant](https://github.com/NayThuKhant)

Versions
--------

[](#versions)

VersionRelease Date[1.0.0](#100)2024-08-31### 1.0.0

[](#100)

- Initial release

License
-------

[](#license)

This project is primarily licensed under the Apache License, Version 2.0. For more details, please refer to the [License File](LICENSE.md).

Please note that this package includes components based on the New Relic Monolog Enricher, which are subject to the New Relic License. All original code contributed to this package, excluding the New Relic Monolog Enricher components, is also made available under the [MIT License](MIT-LICENSE.md).

Users are free to use, modify, and distribute the original code under either the Apache License 2.0 or the MIT License, depending on their preference, with the exception of the New Relic Monolog Enricher components, which must be used in accordance with the New Relic License.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

3

Last Release

672d ago

Major Versions

v0.0.2 → v1.0.02024-08-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/01fbf3f3b5399a2b5f414c905e36cc6f590afee86cef11bfd3e0f765887d8d97?d=identicon)[thixpin](/maintainers/thixpin)

![](https://www.gravatar.com/avatar/e2325853b60b6406c6858e62ccac7bc18920067222cd3d704e288aacc0d29798?d=identicon)[NayThuKhant](/maintainers/NayThuKhant)

---

Top Contributors

[![thixpin](https://avatars.githubusercontent.com/u/6492082?v=4)](https://github.com/thixpin "thixpin (6 commits)")[![NayThuKhant](https://avatars.githubusercontent.com/u/61656360?v=4)](https://github.com/NayThuKhant "NayThuKhant (2 commits)")

---

Tags

octanenewreliclaranexlaravel-newrelic

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laranex-laravel-newrelic/health.svg)

```
[![Health](https://phpackages.com/badges/laranex-laravel-newrelic/health.svg)](https://phpackages.com/packages/laranex-laravel-newrelic)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k203.8M357](/packages/symfony-monolog-bridge)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M622](/packages/illuminate-log)[spatie/flare-client-php

Send PHP errors to Flare

177161.5M23](/packages/spatie-flare-client-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[neeckeloo/newrelic

NewRelic module for Laminas

32209.8k](/packages/neeckeloo-newrelic)

PHPackages © 2026

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