indiana-university / status-api-php
提供访问 status.uits.iu.edu 的 PHP 7 接口
v1.3
2019-06-27 20:22 UTC
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpmd/phpmd: ^2.4
- phpstan/phpstan: ^0.6.4
- phpunit/phpunit: ~6
- rych/random: ^0.1.0
- squizlabs/php_codesniffer: ^2.7
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();