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

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

igormatkovic/laravel-newrelic
=============================

Minimal NewRelic Functionality for Laravel

v0.1.2(3y ago)01.7kMITPHPPHP ^8.0

Since Aug 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/igormatkovic/laravel-newrelic)[ Packagist](https://packagist.org/packages/igormatkovic/laravel-newrelic)[ Docs](https://github.com/igormatkovic/laravel-newrelic)[ RSS](/packages/igormatkovic-laravel-newrelic/feed)WikiDiscussions master Synced 1mo ago

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

Minimal Laravel NewRelic Integration
====================================

[](#minimal-laravel-newrelic-integration)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4121bf58e530afcdfd39c1a4720203cceecad49099db27686fab95f75b3c9b59/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69676f726d61746b6f7669632f6c61726176656c2d6e657772656c69632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/igormatkovic/laravel-newrelic)[![GitHub Tests Action Status](https://camo.githubusercontent.com/9b88a33cfbd42fa91e3aeee502f6409a0547896ea87ccab35ad680881d25fa14/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f69676f726d61746b6f7669632f6c61726176656c2d6e657772656c69632f706870756e69743f6c6162656c3d7465737473)](https://github.com/igormatkovic/laravel-newrelic/actions?query=workflow%3Aphpunit+branch%master)

Simple NewRelic integration that names the APP in Newrelic for both CLI and Web requests.
It also includes a helper for the synthetics monitor and a deployment command helper.

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

[](#installation)

You can install the package via composer:

```
composer require igormatkovic/laravel-newrelic
```

You can publish the config file with:

```
php artisan vendor:publish
```

These are the ENV variables you can edit

```
NEWRELIC_APP_NAME=MY.domain.com
NEWRELIC_API_KEY=some-api-key
NEWRELIC_APP_ID=1234567
NEWRELIC_DEFAULT_USER=me@email.com

# Optional
NEWRELIC_ENABLED=true
NEWRELIC_MONITOR_ENABLED=true
NEWRELIC_MONITOR_ENDPOINT="newrelic/ping"
NEWRELIC_MONITOR_RESPONSE=pong
```

Usage
-----

[](#usage)

Out of the box the App will automatically name the APP in NewRelic.

Synthetics Monitor Setup
------------------------

[](#synthetics-monitor-setup)

[NewRelic &gt; Synthetic monitoring](https://one.newrelic.com/synthetics-nerdlets)
Click on the Create Monitor &gt; Availability

Populate the fields:

```
Name: Ping Monitor
Url: https://mydomain.com/newrelic/ping

#Advanced Options
Text validation: pong
```

Deployment Logging
------------------

[](#deployment-logging)

After each deployment you should run the Deployment trigger

Example if you are using Envoyer

```
php artisan newrelic:deploy "{{message}}" --user="{{author}}" --revision="{{sha}}" --changelog="Deployed from: {{branch}}"
```

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Igor Matkovic](https://github.com/igormatkovic)
- [JackWH/laravel-new-relic](https://github.com/JackWH/laravel-new-relic)

License
-------

[](#license)

The MIT License (MIT)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

3

Last Release

1314d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65602f365138878980125607ea33928261d4a9069b4a4ab57bc261e09d81090d?d=identicon)[igormatkovic](/maintainers/igormatkovic)

---

Top Contributors

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

---

Tags

laravelnewrelic

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[inspector-apm/inspector-laravel

Code Execution Monitoring, built for developers.

2332.0M2](/packages/inspector-apm-inspector-laravel)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299549.3k1](/packages/larabug-larabug)[jackwh/laravel-new-relic

Monitor your Laravel application performance with New Relic

112827.2k](/packages/jackwh-laravel-new-relic)

PHPackages © 2026

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