Skip to content

boltegg/whois

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whois class

PHP class to retrieve WHOIS information.

Installing

composer require boltegg/whois @dev

Methods

Get whois information

<?php

$whois = new \Whois();

$domain = 'google.com';

$whois_result = $whois->getInfo($domain);
echo $whois_result;

Get domain status

<?php

$whois = new \Whois();

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages