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

This package is auto-updated.

Last update: 2024-09-26 15:57:10 UTC


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