lander931 / whois
Whois client.
1.1.2
2018-07-03 08:52 UTC
Requires
- php: >=5.4
- ext-curl: *
This package is auto-updated.
Last update: 2024-06-08 21:42:02 UTC
README
PHP class to retrieve WHOIS information.
Example of usage
<?php $sld = 'reg.ru'; $domain = new \Lander931\Whois\Whois($sld); $whois_answer = $domain->info(); echo $whois_answer; if ($domain->isAvailable()) { echo "Domain is available\n"; } else { echo "Domain is registered\n"; }
Proxy
$sld = 'reg.ru'; $domain = new \Lander931\Whois\Whois($sld, [ 'host' => '127.0.0.1', 'port' => '30000', 'user' => 'user', 'pass' => 'secret' ]);