https://github.com/ragboyjr/pager-duty-client-php
Pager Duty API Client for PHP
https://github.com/ragboyjr/pager-duty-client-php
api-client guzzlehttp pager-duty
Last synced: 12 months ago
JSON representation
Pager Duty API Client for PHP
- Host: GitHub
- URL: https://github.com/ragboyjr/pager-duty-client-php
- Owner: ragboyjr
- License: mit
- Created: 2017-07-07T15:46:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T15:50:06.000Z (almost 9 years ago)
- Last Synced: 2025-03-15T16:23:30.891Z (over 1 year ago)
- Topics: api-client, guzzlehttp, pager-duty
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Pager Duty API Client
Simple PHP Client for interacting with the Pager Duty API.
## Installation
Install with composer at `ragboyjr/pager-duty-client-client`
## Usage
```php
enqueue($routing_key, PagerDuty\EventsApi::ACTION_TRIGGER, [
'summary' => 'My Alert Summary',
'source' => 'sub.host.com',
'severity' => PagerDuty\EventsApi::SEVERITY_INFO,
]);
if ($resp->isOk()) {
var_dump($resp->getBody());
} else if ($resp->isError()) {
var_dump($resp->getStatus());
var_dump($resp->getBody());
var_dump($resp->getHttpResponse());
}
```