jason-gao/whois

Whois client.

v1.0.1 2020-04-16 15:03 UTC

This package is auto-updated.

Last update: 2020-10-16 16:20:54 UTC


README

PHP class to retrieve WHOIS information.

Example of usage

<?php

$sld = 'reg.ru';

$domain = new Phois\Whois\Whois($sld);

$whois_answer = $domain->info();

echo $whois_answer;

if ($domain->isAvailable()) {
    echo "Domain is available\n";
} else {
    echo "Domain is registered\n";
}