matthieumota/uptime-monitor

一个用于检查网站在线状态的PHP组件。

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

This package is auto-updated.

Last update: 2024-08-29 05:12:38 UTC


README

Tests

UptimeMonitor组件提供了PHP面向对象库,便于轻松监控网站。

安装

UptimeMonitor使用Composer。

composer require matthieumota/uptime-monitor

使用方法

<?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();

注意事项

此组件处于开发中,尚不稳定。此外,您也可以贡献,一个文档齐全且经过测试的PR可以被合并。