Getting downtime reports for a site with our PHP SDK

Make sure you've read the getting started guide first. Once that's done, you should have our package & authentication ready to go.

Getting broken links

Here's how to get the downtime for a given site.

$ohDear->site($siteId)->downtime();

//alternatively you could do this
$ohDear->downtime($siteId);

Both methods above will return an array of OhDear\PhpSdk\Resources\Downtime instances. A Downtime instance.

// The date time when we started detecting downtime
$downtime->startedAt;

// The date time when we detected the site was back up
$downtime->endedAt;