2017 © Pedro Peláez
 

library updown-php

A PHP wrapper for the updown.io API

image

fakiolinho/updown-php

A PHP wrapper for the updown.io API

  • Friday, May 27, 2016
  • by fakiolinho
  • Repository
  • 2 Watchers
  • 8 Stars
  • 6,889 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

updown-php

A PHP wrapper for the updown.io API., (*1)

You need your API_KEY from your account's settings page to use this. Visit updown.io API documentation to see all settings you can use., (*2)

Requirements

  • PHP 5.4.0 or newer

Installation

The best way to install this package is through composer by running:, (*3)

composer require fakiolinho/updown-php:~1.0

You could also add it in your project's composer.json file:, (*4)

"require": {
    "fakiolinho/updown-php": "~1.0"
}

Then run:, (*5)

composer update

Usage

All examples use the Composer autoloader., (*6)

List all your checks

<?php
require 'vendor/autoload.php';

use Foinikas\Updown\Updown;

$updown = new Updown(API_KEY);

$response = $updown->checks();

Show a single project's checks

<?php
require 'vendor/autoload.php';

use Foinikas\Updown\Updown;

$updown = new Updown(API_KEY);

$response = $updown->check(TOKEN);

Get all the downtimes of a check (paginated, 100 per call)

<?php
require 'vendor/autoload.php';

use Foinikas\Updown\Updown;

$updown = new Updown(API_KEY);

$response = $updown->downtimes(TOKEN);
$response = $updown->downtimes(TOKEN, ['page' => 2]);

Get detailed metrics about the check

<?php
require 'vendor/autoload.php';

use Foinikas\Updown\Updown;

$updown = new Updown(API_KEY);

$response = $updown->metrics(TOKEN);
$response = $updown->metrics(TOKEN, ['group' => 'host']);

The Versions

27/05 2016

dev-master

9999999-dev

A PHP wrapper for the updown.io API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Fakiolas Marios

php updown.io

27/05 2016

v1.0

1.0.0.0

A PHP wrapper for the updown.io API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Fakiolas Marios

php updown.io

27/05 2016

1.1

1.1.0.0

A PHP wrapper for the updown.io API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Fakiolas Marios

php updown.io