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

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

intouch/newrelic
================

Namespaced Wrapper for NewRelic PHP Agent

v2.0.0(7y ago)373.8M↓15.4%9[1 issues](https://github.com/In-Touch/newrelic/issues)[1 PRs](https://github.com/In-Touch/newrelic/pulls)15Apache 2.0PHPPHP &gt;=7.0.0

Since Apr 22Pushed 7y ago6 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (7)Used By (15)

[![Build Status](https://camo.githubusercontent.com/b59522a245edf50dc11feee0bd00a4757c2e26f9871787b2807169b2dd3a71fc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f496e2d546f7563682f6e657772656c69632f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/In-Touch/newrelic)[![Coveralls](https://camo.githubusercontent.com/14cb847cc1072297f0462b5a05c5b2441d76c2238b9fd6c1ff2853106f963a52/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f496e2d546f7563682f6e657772656c69632f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/In-Touch/newrelic)[![Latest Version on Packagist](https://camo.githubusercontent.com/163ac9be51ccde5ee5855f52692d69b5542f7505a6c37903a1b1651a1dbad63a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e746f7563682f6e657772656c69632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/intouch/newrelic)[![Total Downloads](https://camo.githubusercontent.com/bab53d645dbe735102589c9750421731c90529a3243a7337493905daf8db3030/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e746f7563682f6e657772656c69632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/intouch/newrelic)[![StyleCI](https://camo.githubusercontent.com/722884448ac4d97a76faebe49bd13a0be40d1a6870e904ed5ec1c065dd6b5edb/68747470733a2f2f7374796c6563692e696f2f7265706f732f393630303632362f736869656c64)](https://styleci.io/repos/9600626)

NewRelic PHP Agent API Wrapper
==============================

[](#newrelic-php-agent-api-wrapper)

This is simply a pass-through wrapper to the [NewRelic PHP Agent API](https://newrelic.com/docs/php/the-php-api) in a namespaced class available via composer. No magic here.

### Installation

[](#installation)

Run

```
$ composer require intouch/newrelic

```

### Basic Use

[](#basic-use)

The most basic use is to simple include the class:

```
use Intouch\Newrelic\Newrelic;

$newrelic = new Newrelic();
```

This will load the class and, if the NewRelic agent is installed, give you access to the API. If the agent is not installed, it will simply act as a pass-through and return `false` from all methods.

If you want some notification if the NewRelic agent cannot be loaded, pass `true` to the constructor:

```
use Intouch\Newrelic\Newrelic;

$newrelic = new Newrelic(true);
```

If the agent API is not found, this will now throw a `RuntimeException`.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity54

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~526 days

Total

6

Last Release

2669d ago

Major Versions

1.x-dev → v2.0.02019-01-26

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

v2.0.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/134ccfc3c0d62a251b2df558f57ac2ebc918d45bc95235acd2b60ba7f251bad1?d=identicon)[lukewaite](/maintainers/lukewaite)

![](https://avatars.githubusercontent.com/u/9089995?v=4)[IntouchBot](/maintainers/IntouchBot)[@intouchbot](https://github.com/intouchbot)

---

Top Contributors

[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (24 commits)")[![lukewaite](https://avatars.githubusercontent.com/u/618130?v=4)](https://github.com/lukewaite "lukewaite (13 commits)")[![pleckey](https://avatars.githubusercontent.com/u/684580?v=4)](https://github.com/pleckey "pleckey (11 commits)")[![lukewaite-intouch](https://avatars.githubusercontent.com/u/132575883?v=4)](https://github.com/lukewaite-intouch "lukewaite-intouch (1 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")

---

Tags

newrelicnew relic

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[intouch/laravel-newrelic

Laravel 5 NewRelic Integration

1731.2M](/packages/intouch-laravel-newrelic)[jackwh/laravel-new-relic

Monitor your Laravel application performance with New Relic

112827.2k](/packages/jackwh-laravel-new-relic)[sobanvuex/php-newrelic

PHP Library for New Relic Agent

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

NewRelic PHP agent integration for Nette Framework

19822.4k](/packages/contributte-newrelic)[upscale/swoole-newrelic

New Relic APM monitoring of Swoole web-server

1619.6k](/packages/upscale-swoole-newrelic)[bazilio/yii2-newrelic

Newrelic integration for Yii2

23399.4k](/packages/bazilio-yii2-newrelic)

PHPackages © 2026

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