Add FreeCAD & KiCad

This commit is contained in:
Steffen Lange 2020-05-21 14:14:47 +02:00
parent e8b4adce5f
commit 960b30bc24
2 changed files with 28 additions and 0 deletions

14
modules/FreeCAD.php Normal file
View file

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

14
modules/KiCad.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class KiCad extends PatchBase {
function __construct() {
parent::__construct('KiCad Developers', 'KiCad', 'https://kicad-pcb.org/download/');
}
function check() : bool {
if ($this->fetch('https://kicad-pcb.org/download/source/'))
return $this->parse('/<p>Current Version: <strong>([\d\.]+)<\/strong><\/p>/');
return false;
}
}
?>