PatchBot/modules/Caddy.php
2019-07-15 22:27:48 +02:00

14 lines
329 B
PHP

<?php
class Caddy extends PatchBase {
function __construct() {
parent::__construct('Matthew Holt', 'Caddy', 'https://caddyserver.com/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/caddyserver/caddy/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>