sclinternet/

scl-whois

用于在域名上执行 whois 查询的库

dev-master 2013-06-02 20:38 UTC

This package is not auto-updated.

Last update: 2024-09-14 13:25:17 UTC


README

Build Status Coverage Status

对指定的域名执行 whois 查询。

要求

sclinternet/SclSocket

安装

将以下内容添加到您的 composer.json 文件中

{
    "require": {
        "sclinternet/scl-whois": "dev-master"
    }
}

用法

创建一个 SclSocket\SocketInterface 对象的实例,并调用 lookup() 方法。

$whois = new \SclWhois\DomainLookup(new \SclSocket\Socket);

echo $whois->lookup('google.com');