improoving_me / improoving-php
Improoving.me - PHP SDK 库
v1.4.1
2021-02-01 18:08 UTC
Requires
- php: >=7.1.0
- ext-json: ^1.6
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ^8
README
您可以在 https://improoving.me 签注 Improoving.me 账户。
要求
PHP 7.1.0 及以上版本。
Composer
您可以通过 Composer 安装绑定。运行以下命令
composer require improoving_me/improoving-php
要使用绑定,请使用 Composer 的 自动加载
require_once('vendor/autoload.php');
依赖项
为了正确工作,绑定需要以下扩展
如果您使用 Composer,这些依赖项应该会自动处理。如果您手动安装,请确保这些扩展可用。
入门指南
简单用法如下
# Initialize the School element
$school = new \Improoving\School(array('id' => 2));
# Authorize the user that is making the request
\Improoving\Improoving::setBearerToken($user_token);
# Request the Teachers
$teachers = $school->getTeachers();
echo $teachers;
文档
请参阅 https://test.improoving.me/docs/api 获取最新的文档。