{"repo":"ohdearapp/ohdear-php-sdk","free":true,"listed":false,"github":"https://github.com/ohdearapp/ohdear-php-sdk","clone":"git clone https://github.com/ohdearapp/ohdear-php-sdk.git","description":"An SDK written in PHP to work with the Oh Dear API","language":"PHP","stars":74,"topics":["php","sdk","api","ohdear","uptime","monitoring","ssl","certificate"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Oh Dear PHP SDK This package is the official PHP SDK for the Oh Dear API, built with Saloon v4. Behind the scenes, the SDK uses Saloon to make the HTTP requests. Installation Oh Dear documentation To get started, we highly recommend reading the Oh Dear API documentation. Usage To authenticate, you'll need an API token. You can create one in the API tokens screen at Oh Dear. Setting a timeout By default, the SDK will wait for a response from Oh Dear for 10 seconds. You can change this by passing a timeoutInSeconds option to the constructor: Handling errors The SDK will throw an exception if the API returns an error. For validation errors, the SDK will throw a ValidationException . For all other errors, the SDK will throw an \\OhDear\\PhpSdk\\Exceptions\\OhDearException . Get user info Monitors Monitors are the core of Oh Dear - they watch your websites, APIs, and services for uptime, performance, SSL certificates, broken links, and more. You can create different types of monitors (HTTP, ping, TCP) and configure various checks for each one. View all monitor API documentation Get all monitors Create a monitor See the Oh Dear API documentation for all available attributes. Getting a single monitor Deleting a monitor Getting a monitor by URL Adding a URL to the broken links whitelist Getting a check summary for a monitor You can get a summary of a specific check type for a monitor, which provides the current status and a human-readable summary: You can request a summary for all availa","default_branch":null,"files":null,"tree":[],"storefront":"/r/ohdearapp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ohdearapp/ohdear-php-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}