idcf/client

v0.0.2 2018-02-04 21:44 UTC

This package is not auto-updated.

Last update: 2025-03-21 10:29:15 UTC


README

A PHP client for IDCF Cloud.

Installation

execute:

$ composer require idcf/client

Dependencies

  • PHP 5.4 or later

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.

License

The library is available as open source under the terms of the MIT License.