matthieumota/uptime-monitor

A PHP component to check website uptime.

dev-master 2020-07-03 15:45 UTC

This package is auto-updated.

Last update: 2024-04-29 04:15:27 UTC


README

Tests

The UptimeMonitor component provides PHP Object Oriented library to easily monitor websites.

Installation

UptimeMonitor uses Composer.

composer require matthieumota/uptime-monitor

Usage

<?php

require __DIR__.'/vendor/autoload.php';

use MatthieuMota\Component\UptimeMonitor\UptimeMonitor;

$uptimeMonitor = new UptimeMonitor();

$uptimeMonitor
    ->add('https://boxydev.com')
    ->add('https://matthieumota.fr')
    ->add('https://domain.notexists')
    ->add('https://expired.badssl.com')
;

// Simply stdout result at the moment
$uptimeMonitor->check();

Notes

This component is work in progress, it's no stable. Also, you can contribute, a PR well documented and tested can be merged.