Gandi-API
Gandi-API copied to clipboard
A simple PHP library for the Gandi API.
Gandi-API
A simple PHP library for the Gandi API.
Dependencies
- PHP 5.4+
- zend-xmlrpc
- Gandi API key
Installation
The recommended way is through Composer.
composer require narno/gandi-api
Usage
<?php
use Narno\Gandi\Api as GandiAPI;
try {
$api = new GandiAPI();
// set API key
$params = ['your_api_key'];
// fetches account informations...
$account = $api->account->info($params);
// and print
print_r($account);
} catch (\Exception $e) {
echo $e->getMessage();
}
License
Free software distributed under the terms of the MIT license.