Performs a whois lookup on a given domain name.
Add the following to your composer.json
file
{
"require": {
"sclinternet/scl-whois": "dev-master"
}
}
Create an instance of the DomainLookup object passing in a SclSocket\SocketInterface
and call lookup().
$whois = new \SclWhois\DomainLookup(new \SclSocket\Socket);
echo $whois->lookup('google.com');