ochi51/cybozu-http
最新稳定版本:1.7.0
Composer 安装命令:
composer require ochi51/cybozu-http
包简介
A PHP HTTP client library for cybozu.com API (kintone API and User API)
README 文档
README
Cybozu HTTP is a PHP HTTP client library for cybozu.com API.
cybozu.com API Documentation
Available API
- kintone API
- User API
If you want to use Garoon API, please send Pull Request.
Requirements
- PHP >=7.1
- Composer
- To use the PHP stream handler,
allow_url_fopenmust be enabled in your system's php.ini. - To use the cURL handler, you must have a recent version of cURL >= 7.19.4 compiled with OpenSSL and zlib.
Installation
The recommended way to install Cybozu HTTP is with Composer. Composer is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project.
$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer
You can add Cybozu HTTP as a dependency using the composer
$ composer require ochi51/cybozu-http
Alternatively, you can specify Cybozu HTTP as a dependency in your project's existing composer.json file:
{
"require": {
"ochi51/cybozu-http": "^1.4"
}
}
After installing, you need to require Composer's autoloader:
require 'vendor/autoload.php';
Quick start
$api = new \CybozuHttp\Api\KintoneApi(new \CybozuHttp\Client([
'domain' => 'cybozu.com',
'subdomain' => 'your-subdomain',
'login' => 'your-login-name',
'password' => 'your-password',
]));
// get record that kintone app id is 100 and record id is 1.
$record = $api->record()->get(100, 1);
Usage
@todo
Testing
To run the tests, you need to following process.
- Prepare your kintone account.
- Free trial is here
- Create kintone space template. (Enable multiple thread)
- Create graph.
- Edit
parameters.yml.
Run the following command from the project folder.
$ php ./bin/phpunit
TODO
- Japanese documentation.
License
The MIT License (MIT). Please see LICENSE for more information.
ochi51/cybozu-http 适用场景与选型建议
ochi51/cybozu-http 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 176.42k 次下载、GitHub Stars 达 28, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ochi51/cybozu-http 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ochi51/cybozu-http 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 176.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 28
- 点击次数: 9
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 未知