PHPackages                             kevbaldwyn/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. [HTTP &amp; Networking](/categories/http)
4. /
5. kevbaldwyn/newrelic-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

kevbaldwyn/newrelic-api
=======================

A simple php wrapper for new relics api

083PHP

Since Apr 13Pushed 11y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

newrelic-api
============

[](#newrelic-api)

Simple php wrapper for the New Relic api, based on

\##Installation With Composer

```
"require": {
    ...
    "kevbaldwyn/newrelic-api": "dev-master"
    ...
}

```

Composer Update:

```
$ composer update kevbaldwyn/newrelic-api

```

\##Usage Instantiate the `ApiClient` with your credentials:

```
use KevBaldwyn\NewRelicApi\ApiClient;

$api = new ApiClient('api-key', 'account-id');

```

Create a request object and call it:

```
// in this case send a deployment
$req = $api->sendDeployment('app-id', 'User Name', 'Description', 'Change log', 'version');
$api->call($req);

```

The call method returns an instance of `GuzzleHttp\Message\Response` so that can be interrogated to get the response data ie:

```
$res = $api->call($req);

// check response code
if($res->getStatusCode() == 200) {
    $xml = $res->xml();
}

```

\##Available wrapper methods

- getApplications()
- getSummary()
- listMetrics()
- getData()
- sendDeployment()

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

```
$req = $api->buildRequest($endpoint, $method, $data);
$api->call($req);

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/493d83b3d613f5d449f08b101e742fa85a28a272ab9cf0a73ca778464ad47a7b?d=identicon)[kevbaldwyn](/maintainers/kevbaldwyn)

---

Top Contributors

[![kevbaldwyn](https://avatars.githubusercontent.com/u/2512883?v=4)](https://github.com/kevbaldwyn "kevbaldwyn (6 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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