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)019.4k↑77.2%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 1mo ago

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

32

—

LowBetter than 72% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

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

626d 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

[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)[neeckeloo/newrelic

NewRelic module for Laminas

32207.2k](/packages/neeckeloo-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)[sobanvuex/php-newrelic

PHP Library for New Relic Agent

16520.7k5](/packages/sobanvuex-php-newrelic)

PHPackages © 2026

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