PHP code example of struzik-vladislav / epp-rabbitmq-connection
1. Go to this page and download the library: Download struzik-vladislav/epp-rabbitmq-connection 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-rabbitmq-connection example snippets
use PhpAmqpLib\Connection\AMQPStreamConnection;
use Psr\Log\NullLogger;
use Struzik\EPPClient\EPPClient;
use Struzik\EPPClient\NamespaceCollection;
use Struzik\EPPClient\RabbitMQConnection\RabbitMQConnection;
use Struzik\EPPClient\Request\Domain\CheckDomainRequest;
use Struzik\EPPClient\Response\Domain\CheckDomainResponse;
ietf:params:xml:ns:epp-1.0');
$eppClient->getNamespaceCollection()->offsetSet(NamespaceCollection::NS_NAME_CONTACT, 'urn:ietf:params:xml:ns:contact-1.0');
$eppClient->getNamespaceCollection()->offsetSet(NamespaceCollection::NS_NAME_HOST, 'urn:ietf:params:xml:ns:host-1.0');
$eppClient->getNamespaceCollection()->offsetSet(NamespaceCollection::NS_NAME_DOMAIN, 'urn:ietf:params:xml:ns:domain-1.0');
$eppClient->connect();
$request = new CheckDomainRequest($eppClient);
$request->addDomain('example.com');
/** @var CheckDomainResponse $response */
$response = $eppClient->send($request);
$eppClient->disconnect();