flexyproject / githubapi
1.1.4
2018-02-12 00:15 UTC
Requires
- php: >=7.1.3
- flexyproject/curl: ^1.1.3
- symfony/http-foundation: ^4.0
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2022-02-01 12:56:28 UTC
README
这是一个简单的面向对象的包装器,用于 GitHub API v3,使用 PHP7 编写。
此库与 cURL 一起工作,并提供官方文档中描述的所有功能,包括 客户端 和 WebHooks。
要求
- PHP >= 7
- cURL 扩展
- symfony/http-foundation
- flexyproject/curl
快速开始
// Create a client object $client = new \FlexyProject\GitHub\Client(); // Miscellaneous $miscellaneous = $client->getReceiver(\FlexyProject\GitHub\Client::MISCELLANEOUS); // Lists all the emojis available to use on GitHub. $emojis = $miscellaneous->getReceiver(\FlexyProject\GitHub\Receiver\Miscellaneous::EMOJIS); $emojis->get();
文档
完整文档可在 wiki 部分 中找到。
许可证
此存档中的文件在 GNU Lesser GPL v3 许可证下发布。