$ composer require webdollar/webdollar-client-php
{
"require": {
"webdollar/webdollar-client-php": "^1.0"
}
}
<?php
require 'vendor/autoload.php';
use WebDollar\Client\WebDollarClient;
$oClient = WebDollarClient::factory([
'url' => 'http://localhost:3333',
'auth' => ['username', 'password'],
'debug' => FALSE,
]);
$oClient->clientVersion();
// or async version which will return a promise
$oClient->clientVersionAsync();