Skip to content

Releases: ohdearapp/ohdear-php-sdk

3.1.2

02 Mar 13:06
Compare
Choose a tag to compare
  • make description optional in cron checks

3.1.1

02 Mar 12:43
Compare
Choose a tag to compare
  • make description optional in cron checks

3.1.0

09 Feb 16:05
a707adb
Compare
Choose a tag to compare
  • add status page updates API (#19)

3.0.4

09 Jan 23:13
4173e8d
Compare
Choose a tag to compare
  • more fixes around performance records

3.0.3

09 Jan 21:32
dcccc2e
Compare
Choose a tag to compare
  • fix transforming PerformanceRecord objects (#17)

3.0.2

30 Nov 19:11
Compare
Choose a tag to compare
  • add support for PHP 8

3.0.1

21 Aug 21:43
Compare
Choose a tag to compare
  • add support for Guzzle 7

3.0.0

08 Jul 16:01
Compare
Choose a tag to compare
  • add support for cron sync
  • drop support for PHP 7.3 and below

Breaking changes in the date-format

09 Jun 08:35
d208634
Compare
Choose a tag to compare

This release introduces 2 breaking changes in the way the dates are passed for these functions:

  • performanceRecords()
  • createSiteMaintenance()

Previously, you had to pass the date as a string notation, and the format was different for each method.

performanceRecords(1, 20200607000000, 20200608000000);

createSiteMaintenance(1, '2020-05-19 13:00', '2020-05-19 13:02');

This was inconsistent and not very flexible.

You can now pass the dates in any format you like, the SDK will convert it to the notation our API expects. In other words, you can now do this:

performanceRecords(1, '2020-06-07', '2020-06-08');
performanceRecords(1, '2020-06-07 09:00:00', '2020-06-08 17:00:00');

createSiteMaintenance(1, '2020-05-19', '2020-05-20');
createSiteMaintenance(1, '2020-05-19 09:00:00', '2020-05-20 17:00:00');

Add support for retrieving performance metrics from the API

08 Jun 13:33
Compare
Choose a tag to compare

This release adds support for the following new method:

<?php
$records = $ohDear->performanceRecords(1, 20200607000000, 20200608000000);

Which uses the new performance records API endpoint.