lawondyss/whois

Library for get whois information about domain. Uses the API from the site www.sudostuff.com. An article about the API is available on http://www.sudostuff.com/free-open-source-whois-api-1.html

dev-master 2014-06-05 12:08 UTC

This package is auto-updated.

Last update: 2024-10-17 22:37:12 UTC


README

Library for get whois information about domain.

Uses the API from the site sudostuff.com. About the API is available on this article.

License

Is freely distributable under the terms of the GPL-3 license.

Install

Whois is available on Packagist, where you can get it via Composer.

File composer.json:

{
    "require": {
        "lawondyss/whois": "dev-master"
    }
}

Run in command-line:

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."