/epp-ext-hostmasterua-balance

Balance extension who was provided by Hostmaster (https://hostmaster.ua/).

Primary LanguagePHPMIT LicenseMIT

HostmasterUA Balance Extension for EPP Client

Build Status Latest Stable Version Total Downloads Software License StandWithUkraine

Balance extension who was provided by HostmasterUA.

Extension for struzik-vladislav/epp-client library.

Usage

<?php

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);