stojg / pingdom-api
A PHP library for interacting with the Pingdom REST API.
Installs: 2 491
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 12
pkg:composer/stojg/pingdom-api
Requires
- ext-curl: *
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2021-04-07 12:14:19 UTC
README
This package is a PHP interface to the Pingdom REST API.
Installation
Run the following commands to install the required dependencies:
cd <project root> composer install --no-dev
Usage
require 'vendor/autoload.php'; use Acquia\Pingdom\PingdomApi; $pingdom = new PingdomApi('username', 'password', 'api_key'); print_r($pingdom->getChecks());
Running the tests
The following commands can be used to run the test suite locally:
cd <project root> composer update phpunit
Using composer update
with the --dev
flag will download the phpunit dependency.
This is a continuation / fork of the discontinued Acquia library found at https://github.com/acquia/pingdom-api