1. Go to this page and download the library: Download happydemon/statuscake library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
happydemon / statuscake example snippets
php
$statusCake = new StatusCake\Client(`USER', 'TOKEN');
php
$statusCake->validAccount(); // return true or false
php
$statusCake->account();
php
$statusCake->deleteTest($test);
php
$tests = $statusCake->getTests();
php
$periods = $test->getPeriods();
php
$periods = $test->getPerformance();
php
$periods = $test->getAlerts();
php
$contactGroup = new StatusCake\ContactGroup();
// The only ail to get notifications
$contactGroup->addEmail('[email protected]');
// Save everything
$statusCake->updateContactGroup($contactGroup);