Add Adminer & phpMyAdmin

This commit is contained in:
Steffen Lange 2020-01-31 10:57:04 +01:00
parent 37964163f7
commit 0508f3e72b
2 changed files with 28 additions and 0 deletions

14
modules/Adminer.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class Adminer extends PatchBase {
function __construct() {
parent::__construct('Jakub Vrána', 'Adminer', 'https://www.adminer.org/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/vrana/adminer/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>

14
modules/PhpMyAdmin.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class PhpMyAdmin extends PatchBase {
function __construct() {
parent::__construct('phpMyAdmin Contributors', 'phpMyAdmin', 'https://www.phpmyadmin.net/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/phpmyadmin/phpmyadmin/releases/latest', true))
return $this->parse_json('name');
return false;
}
}
?>