indiana-university/status-api-php

Provides a PHP 7 interface to status.uits.iu.edu

v1.3 2019-06-27 20:22 UTC

This package is auto-updated.

Last update: 2024-04-19 07:16:00 UTC


README

This project aims to provide a simple to use and maintain PHP interface to the IU status application.

Requirements

  • PHP 7+
  • Composer
  • Guzzlehttp

Usage

Note: Currently this library is very basic and does NOT support actions which require authentication. As such the usage will change in the future.

<?php
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();