PHPackages                             itjamie/pagerdutywhosoncall - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. itjamie/pagerdutywhosoncall

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

itjamie/pagerdutywhosoncall
===========================

Pagerduty class for checking who is oncall including override schedules

0.6(10y ago)023GNUPHP

Since Mar 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ITJamie/pagerdutywhosoncall)[ Packagist](https://packagist.org/packages/itjamie/pagerdutywhosoncall)[ RSS](/packages/itjamie-pagerdutywhosoncall/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)DependenciesVersions (6)Used By (0)

PHP PagerDuty WhosOnCall
========================

[](#php-pagerduty-whosoncall)

(c) 2016 Jamie Murphy Installation
-----------------------------------------------------------

[](#c-2016-jamie-murphy-jamiemurphyitgmailcominstallation)

```
$ composer require itjamie/pagerdutywhosoncall
```

Basic Usage
-----------

[](#basic-usage)

```
	require 'vendor/autoload.php'; // if using php composer

	date_default_timezone_set('UTC'); // set the timezone of your php env to be the same you pass to pagerduty
	$pagerdutyapi = new PagerDutyWhosOncall(array(
            'baseurl' => 'https://instancename.pagerduty.com/api/v1/',
            'apikey' => 'placeholderforyourapi',
            'debug' => false,
            'timezone' => 'UTC' // This is the timezone that will be passed to pagerduty. https://developer.pagerduty.com/documentation/rest/types#timezone
            )
	);

	$scheduleid = "abc123";

	echo ' Oncall Now :'.PHP_EOL;
	$result = $pagerdutyapi->whoIsOnCall( $scheduleid );
    var_dump($result);

	echo ' Oncall in one hour :'.PHP_EOL;
	$time = time()+60*60;
	$result = $pagerdutyapi->whoIsOnCall( $scheduleid, $time );
    var_dump($result);
```

Credits
-------

[](#credits)

Thanks to ozzd/PagerdutyPHP for some of the original code.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~0 days

Total

5

Last Release

3744d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50061b699dc7dbaa3604f564f8957f06d226f8e0647f432191c98c4f131853e8?d=identicon)[jamiemurphyit](/maintainers/jamiemurphyit)

---

Top Contributors

[![ITJamie](https://avatars.githubusercontent.com/u/1613241?v=4)](https://github.com/ITJamie "ITJamie (1 commits)")

---

Tags

PagerDuty

### Embed Badge

![Health badge](/badges/itjamie-pagerdutywhosoncall/health.svg)

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

###  Alternatives

[illuminate/workbench

The Illuminate Workbench package.

3129.8k2](/packages/illuminate-workbench)

PHPackages © 2026

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