PHPackages                             burak-vademecum/php-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. burak-vademecum/php-newrelic

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

burak-vademecum/php-newrelic
============================

PHP Library for New Relic Agent

v2.0.0(1y ago)01.4k1MITPHPPHP &gt;=5.4.0

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/burak-vademecum/php-newrelic)[ Packagist](https://packagist.org/packages/burak-vademecum/php-newrelic)[ RSS](/packages/burak-vademecum-php-newrelic/feed)WikiDiscussions main Synced 1mo ago

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

PHP NewRelic
============

[](#php-newrelic)

[![Source Code](https://camo.githubusercontent.com/56d3497253d51a07f2b0c0fb286fc1fc90576bc9655fc9a6f96a630fcdb4d876/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d536f62616e567565782f7068702d2d6e657772656c69632d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/SobanVuex/php-newrelic)[![Packagist Version](https://camo.githubusercontent.com/ae00dc57689c2752349900c1b18cfcfaac009d258e142ddd72f28554983e9029/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f536f62616e567565782f7068702d6e657772656c69632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/SobanVuex/php-newrelic)[![Build Status](https://camo.githubusercontent.com/ffab63db41b8fe6b0d5af92141691aee44659b342232f059d9b08296cf66e484/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f536f62616e567565782f7068702d6e657772656c69632f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/SobanVuex/php-newrelic)[![Coverage Status](https://camo.githubusercontent.com/e074b4eb1a0218c0bbf850659f1ea77ff9406dd80d72b73d74a6f480f164078d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f536f62616e567565782f7068702d6e657772656c69632e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/SobanVuex/php-newrelic/code-structure)[![Quality Score](https://camo.githubusercontent.com/77b7ecebdada6bd7c5138fdd17c55502d5488fd17ca561475f4165c9f697e753/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f536f62616e567565782f7068702d6e657772656c69632e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/SobanVuex/php-newrelic)[![SensioLabs Insight](https://camo.githubusercontent.com/48d7eaa3904db5d133b6753ff6fddf8b08148754cb544e729dac90e9e37f8261/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f34633231663739362d613036652d343132632d383465392d6534613431356239656432322e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/4c21f796-a06e-412c-84e9-e4a415b9ed22)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/785eeba62cd5ea60894ed1aab63dcac720e98cd2e0061af03f09fa41f6b032b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f536f62616e567565782f7068702d6e657772656c69632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/SobanVuex/php-newrelic)

OOP Wrapper for NewRelic's PHP Agent.

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

[](#installation)

To install, use composer:

```
composer require SobanVuex/php-newrelic:~2.0

```

Usage
-----

[](#usage)

Use the Agent directly or with your own DI with `\SobanVuex\NewRelic\Agent`. Or using `Pimple` with `\SobanVuex\NewRelic\Provider\Pimple\AgentPrivoder`.

### Examples

[](#examples)

Setting the application name

```
$newrelic = new SobanVuex\NewRelic\Agent('MyApp');
// or
$newrelic = new SobanVuex\NewRelic\Agent('MyApp1;MyApp2');
// or
$newrelic = new SobanVuex\NewRelic\Agent(['MyApp1', 'MyApp2']);
```

```
$newrelic = new SobanVuex\NewRelic\Agent();
$newrelic->setAppname('MyApp');
// or
$newrelic->setAppname('MyApp1;MyApp2');
// or
$newrelic->setAppname(['MyApp1', 'MyApp2']);
```

Mark a transaction as a background job

```
$newrelic = new SobanVuex\NewRelic\Agent();
$newrelic->backgroundJob();
// or
$newrelic->backgroundJob(PHP_SAPI == 'cli');
```

Name a transaction

```
$newrelic = new SobanVuex\NewRelic\Agent();
$newrelic->nameTransaction('myController/myAction');
```

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/SobanVuex/php-newrelic/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Alex Soban](https://github.com/SobanVuex)
- [All Contributors](https://github.com/SobanVuex/php-newrelic/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/SobanVuex/php-newrelic/blob/master/LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

552d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/175829883?v=4)[burak-vademecum](/maintainers/burak-vademecum)[@burak-vademecum](https://github.com/burak-vademecum)

---

Top Contributors

[![burak-vademecum](https://avatars.githubusercontent.com/u/175829883?v=4)](https://github.com/burak-vademecum "burak-vademecum (1 commits)")

---

Tags

monitoringperformanceapmnewrelicnew relic

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/burak-vademecum-php-newrelic/health.svg)

```
[![Health](https://phpackages.com/badges/burak-vademecum-php-newrelic/health.svg)](https://phpackages.com/packages/burak-vademecum-php-newrelic)
```

###  Alternatives

[sobanvuex/php-newrelic

PHP Library for New Relic Agent

16520.7k5](/packages/sobanvuex-php-newrelic)[jackwh/laravel-new-relic

Monitor your Laravel application performance with New Relic

112827.2k](/packages/jackwh-laravel-new-relic)[scoutapp/scout-apm-laravel

Scout Application Performance Monitoring Agent - https://scoutapm.com

23831.3k](/packages/scoutapp-scout-apm-laravel)[upscale/swoole-newrelic

New Relic APM monitoring of Swoole web-server

1619.6k](/packages/upscale-swoole-newrelic)[scoutapp/scout-apm-php

Scout Application Performance Monitoring Agent - https://scoutapm.com

17877.0k5](/packages/scoutapp-scout-apm-php)[tobiasdierich/gauge

An easy to use application performance monitor.

14413.1k](/packages/tobiasdierich-gauge)

PHPackages © 2026

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