PHP code example of struzik-vladislav / epp-ext-hostmasterua-balance
1. Go to this page and download the library: Download struzik-vladislav/epp-ext-hostmasterua-balance library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
struzik-vladislav / epp-ext-hostmasterua-balance example snippets
use Struzik\EPPClient\Extension\HostmasterUA\Balance\BalanceExtension;
use Struzik\EPPClient\Extension\HostmasterUA\Balance\Request\Balance\InfoBalanceRequest;
// ...
$client->pushExtension(new BalanceExtension('http://hostmaster.ua/epp/balance-1.0', $logger));
// ...
$request = new InfoBalanceRequest($client);
$request->setContract('R12/999');
$response = $client->send($request);