PHP code example of whois-server-list / whois-api

1. Go to this page and download the library: Download whois-server-list/whois-api 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/ */

    

whois-server-list / whois-api example snippets


$whoisApi = new whoisServerList\WhoisApi("apiKey");

$whoisApi = new whoisServerList\WhoisApi("apiKey");
echo $whoisApi->isAvailable("example.net") ? "available" : "registered";