/pingdom-api

A PHP library for interacting with the Pingdom REST API.

Primary LanguagePHP

Pingdom API

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 stojg\Pingdom\Api;

$pingdom = new Api('username', 'password', 'api_key');

// optionally set the Pingdom Team account email address
$pingdom->setAccount('account_email');

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