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

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

pep/php-newrelic
================

Lightweight PHP client for NewRelic.

1.0(10y ago)015MITPHP

Since Jul 10Pushed 10y ago1 watchersCompare

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

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

[![Build Status](https://camo.githubusercontent.com/4d8e31d2bd3c56a95f41069375d880047c32df93d6ae99eab3b0ae1ed85b131f/68747470733a2f2f7472617669732d63692e6f72672f506570696a6e53656e646572732f7068702d6e657772656c69632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/PepijnSenders/php-newrelic)

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

[](#php-newrelic)

Lightweight PHP client for NewRelic.

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

[](#installation)

Install this package with [Composer](https://getcomposer.org).

```
composer require pep/php-newrelic
```

Usage
-----

[](#usage)

Demonstrating a simple method call, the method calls can be anything as long as they appear in `NewRelic`'s [API](https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-api). You can format the functions however you want, with the `newrelic_` part discarded. So `NewRelic::NoticeError`, `NewRelic::notice_error` will both work, use it however you like.

```
