IDCF Cloud PHP Client
A PHP client for IDCF Cloud., (*1)
Installation
execute:, (*2)
$ composer require idcf/client
Dependencies
Usage
Computing
<?php
require_once 'vendor/autoload.php';
$api_key = '';
$secret_key = '';
$client = new \Idcf\Client\Compute($api_key, $secret_key, 'compute.jp-east.idcfcloud.com');
$args = array('command' => 'listZones');
$client->get($args);
Infinite LB
<?php
require_once 'vendor/autoload.php';
$api_key = '';
$secret_key = '';
$client = new \Idcf\Client\Ilb($api_key, $secret_key, 'ilb.jp-east.idcfcloud.com');
$client->get('loadbalancers');
DNS
<?php
require_once 'vendor/autoload.php';
$api_key = '';
$secret_key = '';
$client = new \Idcf\Client\Dns($api_key, $secret_key);
$client->get('zones');
Billing
<?php
require_once 'vendor/autoload.php';
$api_key = '';
$secret_key = '';
$client = new \Idcf\Client\Your($api_key, $secret_key);
$client->get('billings/history');
Content Cache
<?php
require_once 'vendor/autoload.php';
$api_key = '';
$secret_key = '';
$client = new \Idcf\Client\CdnZero($api_key, $secret_key);
$args = array('api_key' => $api_key);
$client->get('fqdns', $args);
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/nhashiguchi/idcf-client-php. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct., (*3)
License
The library is available as open source under the terms of the MIT License., (*4)