2017 © Pedro Peláez
 

library cybozu-http-bundle

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

image

ochi51/cybozu-http-bundle

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

  • Friday, October 28, 2016
  • by ochi51
  • Repository
  • 3 Watchers
  • 2 Stars
  • 9,137 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 7 % Grown

The README.md

CybozuHttpBundleSoftware License

Circle CI Scrutinizer Code Quality Code Coverage Build Status, (*1)

Symfony bundle that integrates the Cybozu HTTP by providing easy-to-use services and configuration., (*2)

cybozu.com API Documentation

Japanese English, (*3)

Requirements

  • PHP >=5.5
  • Composer
  • Symfony >=3.1

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., (*4)

```{.bash} $ curl -sS https://getcomposer.org/installer | php $ mv composer.phar /usr/local/bin/composer, (*5)


You can add Cybozu HTTP as a dependency using the composer ```{.bash} $ composer require ochi51/cybozu-http-bundle

Alternatively, you can specify Cybozu HTTP as a dependency in your project's existing composer.json file:, (*6)

```{.json} { "require": { "ochi51/cybozu-http-bundle": "^1.0" } }, (*7)


After installing, you need to register the bundle in your application. ```{.php} // app/AppKernel.php class AppKernel extends Kernel { // ... public function registerBundles() { $bundles = array( // ... new CybozuHttpBundle\CybozuHttpBundle() ); } }

Configuration

There are two ways that configure cybozu.com account information., (*8)

  1. User entity has it.

```{.yml} # app/config.yml cybozu_http: cert_dir: /path/to/cert_dir logfile: /path/to/logfile.log, (*9)


```{.php} use CybozuHttpBundle\Entity\UserInterface; class User implements UserInterface { public function getCybozuHttpConfig() { return [ "domain" => "cybozu.com", "subdomain" => "changeMe", "use_api_token" => false, "login" => "changeMe", "password" => "changeMe", "token" => null, "use_basic" => false, "basic_login" => null, "basic_password" => null, "use_client_cert" => false, "cert_file" => "cert.pem", "cert_password" => null ]; } public function getDebugMode() { return true; } }

Quick example

```{.php} <?php // AppBundle\Controller\MyCybozuHttpController, (*10)

public function getRecordAction($appId, $recordId)
{
    $api = $this->get('cybozu_http.kintone_api_client');
    $record = $api->record()->get($appId, $recordId);
    // do something
}


Testing ------------ To run the tests, Run the following command from the project folder. ```{.bash} $ php ./bin/phpunit

TODO

  • Japanese documentation.

License

The MIT License (MIT). Please see LICENSE for more information., (*11)

The Versions

28/10 2016

dev-master

9999999-dev

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

  Sources   Download

The Requires

 

The Development Requires

by Yuichi Ochiai

28/10 2016

1.0.0

1.0.0.0

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

  Sources   Download

The Requires

 

The Development Requires

by Yuichi Ochiai

09/08 2016

0.1.7

0.1.7.0

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

  Sources   Download

The Requires

 

The Development Requires

by Yuichi Ochiai

08/08 2016

0.1.6

0.1.6.0

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

  Sources   Download

The Requires

 

The Development Requires

by Yuichi Ochiai

06/07 2016

0.1.5

0.1.5.0

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

  Sources   Download

The Requires

 

The Development Requires

by Yuichi Ochiai

15/06 2016

0.1.4

0.1.4.0

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

  Sources   Download

The Requires

 

The Development Requires

by Yuichi Ochiai

02/12 2015

0.1.3

0.1.3.0

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

  Sources   Download

The Requires

 

The Development Requires

by Yuichi Ochiai

01/12 2015

0.1.2

0.1.2.0

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

  Sources   Download

The Requires

 

The Development Requires

by Yuichi Ochiai

08/10 2015

0.1.1

0.1.1.0

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

  Sources   Download

The Requires

 

The Development Requires

by Yuichi Ochiai

04/10 2015

0.1.0

0.1.0.0

Symfony2 HTTP client bundle for cybozu.com API (kintone API and User API)

  Sources   Download

The Requires

 

The Development Requires

by Yuichi Ochiai