PHP code example of henrywhitaker3 / healthchecks-io

1. Go to this page and download the library: Download henrywhitaker3/healthchecks-io 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/ */

    

henrywhitaker3 / healthchecks-io example snippets


$hc = new Healthchecks('SAMPLE-UUID-HERE');

$hc->success(); // sends a 'success' signal
$hc->fail(); // sends a 'fail' signal
$hc->start(); // sends a 'start' signal

$hm = new HealthchecksManager('SAMPLE-API-KEY');

$hm->listChecks(); // lists all checks
$hm->getCheck('UUID'); // get info for a specific check
$hm->pauseCheck('UUID'); // pauses a check
$hm->resumeCheck('UUID'); // pings a check to resume it
$hm->deleteCheck('UUID'); // deletes the check
$hm->getCheckPings('UUID'); // gets a list of pings for the check
$hm->getCheckStatusChanges('UUID'); // returns a list of "flips" this check has experienced
$hm->createCheck($args); // create a new check
$hm->updateCheck('UUID', $args); // update an existing check
$hm->integrations(); // get a list of integrations (i.e. slack, discord etc.)



namespace Henrywhitaker3\Healthchecks\Tests;

class NewTest extends Test
{
    //
}