1. Go to this page and download the library: Download africc/php-epp2 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?phprequire_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
AfriCC\EPP\Frame\Command\Create\Host as CreateHost;
$frame = new CreateHost();
$frame->setHost('ns1.example.com');
$frame->setHost('ns2.example.com');
$frame->addAddr('8.8.8.8');
$frame->addAddr('8.8.4.4');
$frame->addAddr('2a00:1450:4009:809::1001');
echo $frame;
// or send frame to previously established connection
$epp_client->sendFrame($frame);
useAfriCC\EPP\ObjectSpecasDefaultObjectSpec;
useAfriCC\EPP\Extension\NASK\ObjectSpecasNASKObjectSpec;
useAfriCC\EPP\ClientasEPPClient;
useAfriCC\EPP\HTTPClientasHTTPEPPClient;
useAfriCC\EPP\Frame\Command\Poll;
//...
$nask_objectspec = new NASKObjectSpec();
$default_objectspec = new DefaultObjectSpec();
$nask_client = new HTTPEPPClient($nask_config, $nask_objectspec);
$http_client = new HTTPEPPClient($http_config, $default_objectspec);
$socket_client = new EPPClient($socket_config, $default_objectspec);
$nask_socket_client = new EPPClient($nask_socket_config, $nask_objectspec);
$nask_poll = new Poll($nask_client->getObjectSpec());
$default_poll = new Poll($socket_client->getObjectSpec());
useAfriCC\EPP\ObjectSpecasDefaultObjectSpec;
useAfriCC\EPP\Extension\NASK\ObjectSpecasNASKObjectSpec;
useAfriCC\EPP\ClientasEPPClient;
//...
$nask_objectspec = new NASKObjectSpec();
$default_objectspec = new DefaultObjectSpec();
$variable_client = new EPPClient($socket_config, $default_objectspec);
//calls to getObjectSpec will return default objectSpec and responses//will be parsed using default ObjectSpec
$variable_client->setObjectSpec($nask_objectspec);
//calls to getObjectSpec will return NASK objectSpec and responses//will be parsed using NASK ObjectSpec
$ composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.