Whois
Library for get whois information about domain., (*1)
Uses the API from the site sudostuff.com. About the API is available on this article., (*2)
License
Is freely distributable under the terms of the GPL-3 license., (*3)
Install
Whois is available on Packagist, where you can get it via Composer., (*4)
File composer.json:, (*5)
{
"require": {
"lawondyss/whois": "dev-master"
}
}
Run in command-line:, (*6)
php composer.phar install
Uses
$whois = new Whois\Whois;
$info = $whois->getInfo('google.com');
var_dump($info['Domain Name']); // string(10) "google.com"
var_dump($info['Creation Date']); // string(13) "2002-10-02T00"
var_dump($info['Admin Organization']); // string(11) "Google Inc."