A convenient tool to use United Domains API. It provides tools for direct API calls and convenient wrappers.
This fork can currently only be installed via github.
composer require hades-architect/united-domains
$client = new \HadesArchitect\UnitedDomains\Client($username, $password);
$response = $client->checkDomain([
'domain' => 'example.com',
]);
echo $response;
It brings more output if you debug something.
// Client
$client = new \HadesArchitect\UnitedDomains\TraceableClient($username, $password);
// Logger
$client->setLogger(
new \Monolog\Logger(
'ud_api',
[new \Monolog\Handler\StreamHandler('php://stdout', \Monolog\Logger::DEBUG)],
[new \Monolog\Processor\PsrLogMessageProcessor()]
)
);
$client->enableDebug();
$response = $client->call('CheckDomain', ['domain' => 'example.com']);
echo $response;
- More tests