ochi51 / cybozu-http
A PHP HTTP client library for cybozu.com API (kintone API and User API)
Installs: 119 511
Dependents: 1
Suggesters: 0
Security: 0
Stars: 26
Watchers: 4
Forks: 17
Open Issues: 3
Requires
- php: >=8.1
- ext-dom: *
- ext-fileinfo: *
- ext-json: *
- ext-openssl: *
- guzzlehttp/guzzle: ^7.0
- incenteev/composer-parameter-handler: ^2.1
Requires (Dev)
- league/csv: ^9.0
- phpunit/phpunit: ^8.0|^9.0|^10.0|^11.0
- scrutinizer/ocular: dev-master
- symfony/yaml: ^2.0|^3.0|^4.0|^5.0|^6.0|^7.0
- dev-master
- 1.7.0
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.x-dev
- 1.5.1
- 1.5.0
- 1.4.x-dev
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.x-dev
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.x-dev
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.x-dev
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.x-dev
- 1.0.1
- 1.0.0
- 0.1.x-dev
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
This package is auto-updated.
Last update: 2024-11-13 10:39:58 UTC
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_fopen
must 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.