indiana-university/status-api-php

提供访问 status.uits.iu.edu 的 PHP 7 接口

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

This package is auto-updated.

Last update: 2024-09-19 08:09:54 UTC


README

此项目旨在提供一个简单易用和维护的 PHP 接口,用于 IU 状态应用程序。

需求

  • PHP 7+
  • Composer
  • Guzzlehttp

使用说明

注意:目前这个库非常基础,不支持需要认证的操作。因此,使用方法在未来将会改变。

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