This package is a PHP interface to the Pingdom REST API.
Run the following commands to install the required dependencies:
cd <project root>
composer install --no-devrequire 'vendor/autoload.php';
use Silverstripe\Pingdom\Api;
$pingdom = new Api('api_key');
print_r($pingdom->getChecks());For functional testing you can use the get-checks command provided as a symfony console command
usage:
export PINGDOM_API_TOKEN="somesecretgoeshere"
./bin/pingdom-cli get-checksThe following commands can be used to run the test suite locally:
cd <project root>
composer update
./vendor/bin/phpunitUsing composer update with the --dev flag will download the phpunit dependency.
This is a continuation / fork of [https://github.com/stojg/pingdom-api] and the discontinued Acquia library found at [https://github.com/acquia/pingdom-api]