PHPackages                             nmcquay/pagerduty - 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. nmcquay/pagerduty

ActiveLibrary[API Development](/categories/api)

nmcquay/pagerduty
=================

Library for interacting with PagerDuty REST API

0.1.0(11y ago)9203.1k↓60.5%3[1 issues](https://github.com/nmcquay/pagerduty/issues)1MITPHPPHP &gt;=5.3.3CI failing

Since Aug 8Pushed 7y ago2 watchersCompare

[ Source](https://github.com/nmcquay/pagerduty)[ Packagist](https://packagist.org/packages/nmcquay/pagerduty)[ Docs](https://github.com/nmcquay/pagerduty)[ RSS](/packages/nmcquay-pagerduty/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

This package is no longer maintained
====================================

[](#this-package-is-no-longer-maintained)

The pagerduty api will be changing soon (Oct 2018). I do not currently have a pagerduty account or an active php setup to develop against to update this package. I'd recommend switching to this package:

PagerDuty
=========

[](#pagerduty)

Library for interacting with PagerDuty REST API

currently only implements Events/Integration API:

Composer Install:
-----------------

[](#composer-install)

`"nmcquay/pagerduty": "0.1.*"`

Examples:
=========

[](#examples)

Events:
-------

[](#events)

```
$evt = new \PagerDuty\Event();
// service key found at https://.pagerduty.com/services
$evt->setServiceKey('32 char GUID')
    ->setDescription('an example description')
    //incident key will get set automatically by pagerduty response if not set here
    //->setIncidentKey('example001') //optional
    ->setClient('Example Client') //optional
    ->setClientUrl('http://www.example.com') //optional
    ->setDetails( array('test' => 1) ) //optional
    //setDetail will add/alter a key to the details object
    ->setDetail( 'appended Detail key', 'with a value' ); //optional
$resp = $evt->trigger();

var_dump( $resp, $evt->toArray(), $evt->getIncidentKey() );

//now assuming everything worked, you should have triggered a pagerduty event
//we can acknowledge the event:
$resp = $evt->acknowledge();
var_dump( $resp );

//and we can resolve the event:
$resp = $evt->resolve();
var_dump( $resp );

// acknowledge() and resolve() require an incident_key to exist before
// calling them

// You can also initialize an event using the same JSON format pageduty
// accepts (as a PHP array):
$evtB = new \PagerDuty\Event( array(
      "service_key" => "32 char GUID",
      "incident_key" => "srv01/HTTP",
      "description" => "FAILURE on machine srv01.example.com",
      "client" => "Sample Monitoring Service",
      "client_url" => "https://monitoring.example.com",
      "details" => array(
          "ping time" => "1500ms",
          "load avg" => "0.75"
      )
) );
$evtB->trigger();
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

4347d ago

### Community

Maintainers

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

---

Top Contributors

[![nmcquay](https://avatars.githubusercontent.com/u/79750?v=4)](https://github.com/nmcquay "nmcquay (2 commits)")[![baileylo](https://avatars.githubusercontent.com/u/145345?v=4)](https://github.com/baileylo "baileylo (1 commits)")

---

Tags

PagerDuty

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nmcquay-pagerduty/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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