jacobtread / kni
There is no license information available for the latest version (1.0.1) of this package.
KAMAR Notices Interface - A way to access notices from KAMAR in a bunch of languages (PHP)
1.0.1
2021-01-26 07:31 UTC
Requires
- php: >=7.4
- ext-simplexml: *
- symfony/http-client: ^5.2
README
PHP Edition
KNI (KAMAR Notices Interface) is a project designed to bring a way of accessing notices from the KAMAR portal software. KNIs goal is to produce usable libraries in as many languages as possible
KNI is available on Composer:
$ composer install jacobtread/kni
Retrieving Notices
require 'vendor/autoload.php'; use Jacobtread\KNI\KNI; $kni = new KNI('demo.school.kiwi'); $notices = $kni->retrieve(); if ($notices->isSuccess()) { $values = $notices->getNotices(); // TODO: Add your notice handling } else { echo $notices->getErrorMessage(); }
Specifying a custom date
$notices = $kni->retrieve('01/01/2020');
Getting only meetings
$values = $notices->getMeetings();
Filter notices
$values = $notices->getNotices(function ($notice) { if (% YOUR CONDITION %) { return true; } return false; })
By Jacobtread