Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 26 days 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T15:50:06.000Z (over 7 years ago)
- Last Synced: 2024-04-22T09:43:34.818Z (7 months ago)
- Topics: api-client, guzzlehttp, pager-duty
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- 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());
}
```