PHPackages                             ersoy-insider/newrelic-custom-event - 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. ersoy-insider/newrelic-custom-event

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

ersoy-insider/newrelic-custom-event
===================================

Sends custom events to newrelic insights

1.0.2(8y ago)232.4kMITPHPPHP &gt;=7.0.0

Since Jan 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ersoy-insider/newrelic-custom-event)[ Packagist](https://packagist.org/packages/ersoy-insider/newrelic-custom-event)[ RSS](/packages/ersoy-insider-newrelic-custom-event/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (8)Versions (4)Used By (0)

Simple Library to send custom events to NewRelic Insights

[![Coverage Status](https://camo.githubusercontent.com/03e4cad768336bd380330be45dfe14b6ce40200192b1883894b2ac4ccf7e3f51/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6572736f792d696e73696465722f6e657772656c69632d637573746f6d2d6576656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ersoy-insider/newrelic-custom-event?branch=master)[![Build Status](https://camo.githubusercontent.com/50eedabb2595126f62cca68a2b1a9eff00d6e77a163c34f11cf90b1a6dcd4b2a/68747470733a2f2f7472617669732d63692e6f72672f6572736f792d696e73696465722f6e657772656c69632d637573746f6d2d6576656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ersoy-insider/newrelic-custom-event)[![StyleCI](https://camo.githubusercontent.com/3061f16e3680facb7bf428a9022db99334083f4ecb7968d6bfa8da3ea276b3ed/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131393435333332312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/119453321)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6014dd59d8c9f34600f322c01e7b5128f61567386e581b5cc99fa8dc5208c6f6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6572736f792d696e73696465722f6e657772656c69632d637573746f6d2d6576656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ersoy-insider/newrelic-custom-event/?branch=master)

Installation For Lumen
----------------------

[](#installation-for-lumen)

Require this package with Composer

```
$ composer require ersoy-insider/newrelic-custom-event
```

or composer.json

```
"require": {
  "ersoy-insider/newrelic-custom-event": "^1.0"
},
```

Configuration
-------------

[](#configuration)

Add service provider

```
$app->register(\ErsoyInsider\NewrelicCustomEvent\NewRelicCustomEventServiceProvider::class);
```

If you want to use facade, add following line

```
$app->withFacades(true, [
    '\ErsoyInsider\NewrelicCustomEvent\Facades\NewRelicDispatcher' => 'NewRelicDispatcher'
]);
```

Copy the `/vendor/ersoy-insider/newrelic-custom-event/config/new-relic-custom-event.php` file to your local config directory. Edit `config/new-relic-custom-event.php` for your NewRelic credentials.

### Basic usage

[](#basic-usage)

```
app('new-relic-dispatcher')->fire($properties);
```

or

```
\NewRelicDispatcher::fire($properties);
```

```
$properties = [
    'jobName' => 'test',
    'users' => [
        ['id' => 5, 'name' => 'testasdada'],
        ['id' => 55, 'name' => 'test3'],
        ['id' => 555, 'name' => 'test2'],
        ['id' => 5555, 'name' => 'test4'],
    ],
    'test' => 'another-parameter',
    'yet-another' => 'parameter',
    'will-be' => ['discarded'] // it will be discarded
    'will-not-be' => 'discarded' // it will not be discarded
];
```

- `$properties` is basic array consist of key values.
- Only `users` key's value is allowed to array, any other key of which value is discarded because of NewRelic's policy.
- Events will be queued for delivery to NewRelic's Insights.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

2991d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c173eff59ecb999a51741439bb45d6c79606b77790d76c2a3e21a33141622d9b?d=identicon)[ersoy-insider](/maintainers/ersoy-insider)

---

Top Contributors

[![ersoy-insider](https://avatars.githubusercontent.com/u/17027410?v=4)](https://github.com/ersoy-insider "ersoy-insider (20 commits)")

---

Tags

lumennewrelic-insightsphplumennewrelic

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ersoy-insider-newrelic-custom-event/health.svg)

```
[![Health](https://phpackages.com/badges/ersoy-insider-newrelic-custom-event/health.svg)](https://phpackages.com/packages/ersoy-insider-newrelic-custom-event)
```

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[inspector-apm/inspector-laravel

Code Execution Monitoring, built for developers.

2332.0M2](/packages/inspector-apm-inspector-laravel)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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