Add Homepage

This commit is contained in:
Steffen Lange 2021-03-14 00:23:45 +01:00
parent 46502bb96d
commit 601bc78ca5

14
modules/Homepage.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class Homepage extends PatchBase {
function __construct() {
parent::__construct('Tomer Shvueli', 'Homepage', 'https://github.com/tomershvueli/homepage');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/tomershvueli/homepage/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>