PHP code example of jacobtread / kni

1. Go to this page and download the library: Download jacobtread/kni library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jacobtread / kni example snippets




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();
}

$notices = $kni->retrieve('01/01/2020');

$values = $notices->getMeetings();

$values = $notices->getNotices(function ($notice) {
    if (% YOUR CONDITION %) {
        return true;
    }
    return false;
})