This repository provides some helper scripts to interact with Pingdom API.
- Firstly, download the repository to your local machine and run
composer install
to install all the dependent packages. - Rename
.env.example
to.env
, put your Pingdom API token to.env
file - Rename
input/2.checks.example
toinput/2.checks
- Rename
input/2.date_range.php.example
toinput/2.date_range.php
# Make sure you are in the root of the package
php scripts/<script_name.php>
You can use php & composer runtime environment provided via bkstar123/php-composer
Docker container as follows:
# Make sure you are in the root of the package
docker run --rm -v $PWD:/app bkstar123/php-composer:latest composer install # To install package dependencies
docker run --rm -v $PWD:/app bkstar123/php-composer:latest php scripts/<script_name.php>