PHP Classes

PHP Whois Domain Info: Get domain whois information checking IANA first

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 497 All time: 5,842 This week: 140Up
Version License PHP version Categories
whois-info-domain 1.0The PHP License4.0Networking
Description 

Author

This class can get domain whois information checking IANA first.

It can connect to the whois.iana.org domain server to get the whois server of a top level domain of a given domain.

Then the class can query the returned whois server to get the information about the actual domain.

If the domain is registered it may return its registrar, owner name and trade name, issue date and expiry date.

Innovation Award
PHP Programming Innovation award nominee
June 2015
Number 11
Whois is a protocol used to query a server and obtain information about a given domain.

Usually that information is provided by a specific whois server depending on the top level domain of the domain you want to query.

The address of the whois server to query for a given top level domain can be discovered by querying a whois server of the IANA organization.

This class queries first the IANA whois server to determine the address of the right whois server to query for a given domain.

Manuel Lemos
Picture of namlengoc
  Performance   Level  
Name: namlengoc <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 3278439 in United States United States
Week rank: 192 Up22 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Example

$lib_whois = new whois();
$domain = "demo.com";
$whois_server = $lib_whois->get_whois_server($domain);
echo "Whois server registry is ".$whois_server;

$whois_domain = $lib_whois->get_info_domain($domain,$whois_server);
echo "whois info domain <pre>".print_r($whois_domain,true)."</pre>";


  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.php Example exmple how to use class whois
Plain text file whois.php Class whois info domain

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:497
This week:0
All time:5,842
This week:140Up