whoisCheck.php
<form method="POST" action="">
<input type="text" name="domain">
<input type="submit" value="get whois">
</form>
<?php
if (isset($_POST['domain']) {
/* пример из гитхаба */
include '../src/Phois/Whois/Whois.php';
$sld = $_POST['domain'];
$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";
}
}
?>