PHP code example of overals / yii2-whois
1. Go to this page and download the library: Download overals/yii2-whois library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
overals / yii2-whois example snippets
$domainName = 'wtools.io';
$domain = new \overals\whois\Whois($domainName);
$whois_answer = $domain->info();
echo $whois_answer;
if ($domain->isAvailable()) {
echo "Domain is available\n";
} else {
echo "Domain is registered\n";
}
bash
$ php composer.phar