Simple wrapper to call uptime-robot heartbeat unified

2.0.0 2022-10-27 09:00 UTC

This package is auto-updated.

Last update: 2023-11-27 11:37:47 UTC


This package wraps another PHP function to create and send a heartbeat for uptime-robot and can log a warning if request was not succesful.

Upgrade from 1 to 2

there is no HeartBeatException anymore. If you want to log that the request to uptime-robot has failed, you need to inject an \Psr\Log\LoggerInterface in the constructor.


composer req pluswerk/uptime-robot


Send request to UptimeRobot:

$heartBeat = new HeartBeat();

Throttle your requests with a given time:

$heartBeat->throttledAlive($yourUptimeUrl, 300);