PHP code example of pentagonal / whois
1. Go to this page and download the library: Download pentagonal/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/ */
pentagonal / whois example snippets
/**
* WhoIs detail returning server as key
* returning @uses \ArrayObject
*/
use Pentagonal\WhoIs\WhoIs;
use Pentagonal\WhoIs\Util\DataGetter;
$who = new WhoIs(new DataGetter());
/**
* get data from whois with fully detail per registrant data
* second param is follow whois or check if domain have internal server from registrant
*/
$who->getWhoIsWithArrayDetail('example.com', true); # instance of ArrayObject
/**
* get data from whois with o->getIpData('127.0.0.1'); # instance of ArrayObject
/**
* get domain is registered or not
* if returning null result is unknown otherwise boolean
* true if registered or false is unregistered
*/
$who->isDomainRegistered('example.com');
// ... do your