1. Go to this page and download the library: Download monovm/whois-php 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/ */
monovm / whois-php example snippets
use MonoVM\WhoisPhp\Checker;
// Single Domain whois
$result1 = Checker::whois('monovm.com');
// Single Domain whois without specifying TLD
$result2 = Checker::whois('monovm');
// Multiple domains whois
$result3 = Checker::whois(['monovm','google.com','bing']);