PHP code example of struzik-vladislav / epp-ext-rgp

1. Go to this page and download the library: Download struzik-vladislav/epp-ext-rgp 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-rgp example snippets




use Struzik\EPPClient\Extension\RGP\RGPExtension;
use Struzik\EPPClient\Extension\RGP\Request\RGPRequestRestoreRequest;

// ...

$client->pushExtension(new RGPExtension('urn:ietf:params:xml:ns:rgp-1.0', $logger));

// ...

$request = new RGPRequestRestoreRequest($client);
$request->setDomain('example.net');
$response = $client->send($request);