nzldev/domain-whois
Composer 安装命令:
composer require nzldev/domain-whois
包简介
This package contains a class that can fetch DNS records and whois info.
README 文档
README
This package contains a class that can fetch DNS records and whois info.
composer require nzldev/domain-whois
Example of usage
<?php $sld = 'google.com'; $domain = new NzlDev\Whois\Whois($sld); $whois_answer = $domain->info(); echo $whois_answer; if ($domain->isAvailable()) { echo "Domain is available\n"; } else { echo "Domain is registered\n"; }
A more complete example:
<?php require_once __DIR__.'/vendor/autoload.php'; $sld = 'facebook.com'; try { $domain = new NzlDev\Whois\Whois($sld); } catch (InvalidArgumentException $e) { die($e->getMessage()."\n"); } if ($domain->isAvailable()) { echo "Domain is available\n"; } else { echo "Domain is registered\n"; }
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-27