0

我正在寻找用 php 编写的 EPP(可扩展供应协议)工具。

我找到了“https://www.centralnic.com/registry/labs/preppi”,它位于 Linux 和 unix 系统的 perl 中。

我找到了“https://epptool-ctld.verisign-grs.com/epptool/”,但它支持有限的 tld。

我想要这个工具,这样我就不需要编码了。如果我提供输入假设用于域注册。应创建 epp 请求并将其发送到特定的 epp 服务器。

对基于 php 的 EPP 工具的任何建议表示赞赏。或基于 PHP 的 API。

4

1 回答 1

3

我找到了“https://www.centralnic.com/registry/labs/preppi”,它位于 Linux 和 unix 系统的 perl 中。

这不是真的CentralNicPERLPHP版本,如果你在 windows 或 unix 上都安装了PEAR,它非常容易使用

例子

require ('Net/EPP/Client.php');
$client = new Net_EPP_Client();
$host = 'epp.nominet.org.uk';
$port = 700;
$timeout = 10;
$ssl = true;
$greeting = $client->connect($host, $port, $timeout, $ssl);
echo $greeting;

输出

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.nominet.org.uk/epp/xml/epp-1.0 epp-1.0.xsd">
  <greeting>
    <svID>Nominet EPP server epp.nominet.org.uk</svID>
    <svDate>2008-08-23T16:24:51Z</svDate>
    <svcMenu>
      <version>1.0</version>
      <lang>en</lang>
      <objURI>http://www.nominet.org.uk/epp/xml/nom-account-1.0</objURI>
      <objURI>http://www.nominet.org.uk/epp/xml/nom-domain-1.0</objURI>
      <objURI>http://www.nominet.org.uk/epp/xml/nom-contact-1.0</objURI>
      <objURI>http://www.nominet.org.uk/epp/xml/nom-ns-1.0</objURI>
    </svcMenu>
    <dcp>
      <access><all/></access>
      <statement>
        <purpose><admin/><prov/></purpose>
        <recipient><ours/></recipient>
        <retention><indefinite/></retention>
      </statement>
    </dcp>
  </greeting>
</epp>
于 2012-12-03T10:17:00.930 回答