PHPackages                             timdiels1/newrelic-api - 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. [API Development](/categories/api)
4. /
5. timdiels1/newrelic-api

ActiveLibrary[API Development](/categories/api)

timdiels1/newrelic-api
======================

New Relic API v2 client library for PHP

v1.0.0(8y ago)015MITPHPPHP &gt;=5.6.4

Since Jul 11Pushed 8y agoCompare

[ Source](https://github.com/timdiels1/newrelic-api)[ Packagist](https://packagist.org/packages/timdiels1/newrelic-api)[ Docs](https://github.com/timdiels1/newrelic-api)[ RSS](/packages/timdiels1-newrelic-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

New Relic API v2 client library for PHP
=======================================

[](#new-relic-api-v2-client-library-for-php)

Copyright (c) 2017 [Tim Diels](https://github.com/timdiels1).

Documentation
-------------

[](#documentation)

- [Installation](#installation)
- [Usage](#usage)
- [Endpoints](#endpoints)

### Installation

[](#installation)

The wrapper is available on Packagist ([timdiels1/newrelic-api](http://packagist.org/packages/timdiels1/newrelic-api)) and can be installed using [Composer](http://getcomposer.org/):

```
composer require timdiels1/newrelic-api
```

### Usage

[](#usage)

You will need an [Admin or REST API key from New Relic](https://docs.newrelic.com/docs/apis/rest-api-v2/requirements/new-relic-rest-api-v2-getting-started#api_key) to use the wrapper. The wrapper can either be used by instantiating endpoints directly.

```
use timdiels1\NewRelicApi\NewRelic;

$baseUrl = 'https://api.newrelic.com/v2/';
$apiKey = 'thisisnotrealyouwillneedanapikey';

$client = new Newrelic($baseUrl, $apiKey);
$isAvailable = $client->isAvailable();

```

### Endpoints

[](#endpoints)

- isAvailable()
- getServers()

Other calls can be made by manually building a request using buildRequest and then calling it:

```
$response = $client->buildRequest($url, $method, $data);

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3276d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/abed3b024463903259ff018c5dce73c81fc1e4bc51ded20eb8b8cc1d7ad19125?d=identicon)[timdiels1](/maintainers/timdiels1)

---

Top Contributors

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

---

Tags

apinewrelicapinew relic

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.7k371.6k6](/packages/theodo-group-llphant)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.5M11](/packages/checkout-checkout-sdk-php)[clicksend/clicksend-php

301.6M11](/packages/clicksend-clicksend-php)

PHPackages © 2026

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