2017 © Pedro Peláez
 

library statuspage-sdk-php

Statuspage.io helps you to create a status page of your app or website.

image

statuspage/statuspage-sdk-php

Statuspage.io helps you to create a status page of your app or website.

  • Tuesday, January 28, 2014
  • by xsolla
  • Repository
  • 11 Watchers
  • 3 Stars
  • 4,387 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

StatusPage.io PHP SDK

Latest Stable Version Build Status Scrutinizer Quality Score Code Coverage, (*1)

A PHP SDK for StatusPage.io, (*2)

Requirements

  • PHP 5.3.3+
  • PHP cURL extension with SSL enabled (it's usually built-in).

Instalation

The recommended way to install StatusPage SDK for PHP is through Composer., (*3)

``` bash $ cd /path/to/your/project $ composer require statuspage/statuspage-sdk-php:~0.1, (*4)


## Usage ### [Subscriptions endpoint](http://doers.statuspage.io/api/v1/subscribers/) ``` php <php use Guzzle\Http\Client as GuzzleClient; use StatusPage\SDK\Client; use StatusPage\SDK\Subscribers\Subscriber; $client = new Client(new GuzzleClient, 'YOUR_PAGE_ID', 'YOUR_SECRET_KEY'); $subscriber = new Subscriber; $subscriber->setEmail('example@example.com'); $client->subscribers()->addSubscriber($subscriber);

Metrics endpoint

``` php <php, (*5)

use Guzzle\Http\Client as GuzzleClient; use StatusPage\SDK\Client;, (*6)

$client = new Client(new GuzzleClient, 'YOUR_PAGE_ID', 'YOUR_SECRET_KEY'); $client->metrics()->submitData('YOUR_METRIC_ID', time(), mt_rand(1, 100));, (*7)

```, (*8)

Additional resources

The Versions

28/01 2014

dev-master

9999999-dev http://statuspage.io

Statuspage.io helps you to create a status page of your app or website.

  Sources   Download

MIT

The Requires

 

by xsolla developers

api sdk metrics status monitoring statuspage

28/01 2014

v0.1

0.1.0.0 http://statuspage.io

Statuspage.io helps you to create a status page of your app or website.

  Sources   Download

MIT

The Requires

 

by xsolla developers

api sdk metrics status monitoring statuspage

27/01 2014

dev-Metricsls

dev-Metricsls

  Sources   Download

The Requires

 

by Renat Bilalov