biteit/domain-expiration-fetcher
Composer 安装命令:
composer require biteit/domain-expiration-fetcher
包简介
Fetches Domain Expiration date from WHOIS servers
README 文档
README
Fetches Domain Expiration information from WHOIS servers
Usage:
$ds = new \BiteIT\Utils\DomainExpirationFetcher(); if($ds->canFetchInfoAbout('com'){ $date = $ds->fetchExpirationDate($domain); var_dump($date); }
There are certain WHOIS servers that do not publish expiration dates, they are specified in DomainExpirationFetcher::TLDS_WITH_NO_INFO, and as of this date I found out these are the TLDs: 'de', 'eu', 'at', 'bg', 'cy', 'es', 'gr', 'hu', 'ch', 'be', 'lu', 'lv', 'ph', 'no', 'name', 'kz', 'ge', 'az'
If you want to customize any parser or add your own, check WhoisInfoParser.php abstract class and its implementation in whois-parsers folders. You can then set the parser by using
$ds->setWhoisParser($instanceOfMyParser, 'mytld')
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-26