2017 © Pedro Peláez
 

library pingdom

A PHP library for dealing with the Pingdom REST API

image

sgrodzicki/pingdom

A PHP library for dealing with the Pingdom REST API

  • Tuesday, January 27, 2015
  • by sgrodzicki
  • Repository
  • 1 Watchers
  • 12 Stars
  • 64,257 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 8 Versions
  • 2 % Grown

The README.md

Pingdom REST API

A PHP module to make use of the Pingdom REST API for you to automate your interaction with the Pingdom system., (*1)

Installation

The best way to install the library is by using Composer. Add the following to composer.json in the root of your project:, (*2)

``` javascript { "require": { "sgrodzicki/pingdom": "1.1.*" } }, (*3)


Then, on the command line: ``` bash curl -s http://getcomposer.org/installer | php php composer.phar install

Use the generated vendor/.composer/autoload.php file to autoload the library classes., (*4)

Basic usage

<?php

$username = ''; // Pingdom username
$password = ''; // Pingdom password
$token    = ''; // Pingdom application key (32 characters)

$pingdom = new \Pingdom\Client($username, $password, $token);

// List of probe servers
$probes = $pingdom->getProbes();
foreach ($probes as $probe) {
    echo $probe->getName() . PHP_EOL;
}

// List of checks
$checks  = $pingdom->getChecks();
foreach ($checks as $check) {
    $results = $pingdom->getResults($check['id']);
}

Tests

Build Status, (*5)

The client is tested with phpunit; you can run the tests, from the repository's root, by doing:, (*6)

``` bash phpunit, (*7)


Some tests require internet connection (to test against a real API response), so they are disabled by default; to run them add a `credentials.php` file in the root of your project: ```php <?php require_once __DIR__ . '/vendor/autoload.php'; $username = '[your username]'; $password = '[your password]'; $token = '[your token]';

and run the tests, from the repository's root, by doing:, (*8)

bash phpunit --bootstrap credentials.php, (*9)

The Versions

27/01 2015

dev-master

9999999-dev https://github.com/sgrodzicki/pingdom

A PHP library for dealing with the Pingdom REST API

  Sources   Download

MIT

The Requires

 

api pingdom

27/01 2015

1.1.5

1.1.5.0 https://github.com/sgrodzicki/pingdom

A PHP library for dealing with the Pingdom REST API

  Sources   Download

MIT

The Requires

 

api pingdom

15/08 2013

1.1.4

1.1.4.0 https://github.com/sgrodzicki/pingdom

A PHP library for dealing with the Pingdom REST API

  Sources   Download

MIT

The Requires

 

api pingdom

06/05 2013

1.1.3

1.1.3.0 https://github.com/sgrodzicki/pingdom

A PHP library for dealing with the Pingdom REST API

  Sources   Download

MIT

The Requires

 

api pingdom

01/03 2013

1.1.2

1.1.2.0 https://github.com/sgrodzicki/pingdom

A PHP library for dealing with the Pingdom REST API

  Sources   Download

MIT

The Requires

 

api pingdom

21/11 2012

1.1.1

1.1.1.0 https://github.com/sgrodzicki/pingdom

A PHP library for dealing with the Pingdom REST API

  Sources   Download

MIT

The Requires

 

api pingdom

24/07 2012

1.1.0

1.1.0.0 https://github.com/sgrodzicki/pingdom

A PHP library for dealing with the Pingdom REST API

  Sources   Download

MIT

The Requires

 

api pingdom

20/07 2012

1.0.0

1.0.0.0 https://github.com/sgrodzicki/pingdom

A PHP library for dealing with the Pingdom REST API

  Sources   Download

MIT

The Requires

 

api pingdom