A simple PHP library for the Gandi API.
- PHP 5.4+
- zend-xmlrpc
- Gandi API key
The recommended way is through Composer.
composer require narno/gandi-api
<?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();
}
Free software distributed under the terms of the MIT license.
ยฉ Arnaud Ligny