PHP code example of indiana-university / status-api-php
1. Go to this page and download the library: Download indiana-university/status-api-php 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/ */
indiana-university / status-api-php example snippets
use Edu\Iu\Uits\Status\Status;
use Edu\Iu\Uits\Status\Provider\Web\Web;
$provider = new Web();
$status = new Status($provider);
/**
* Get a specific notice
*/
$notice = $status->getNotice(10);
/**
* Get all active notices
*/
$notices = $status->getNotices();