PHP code example of sayeed / whois
1. Go to this page and download the library: Download sayeed/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/ */
sayeed / whois example snippets
shell
php artisan vendor:publish --provider="Sayeed\Whois\WhoisServiceProvider"
$whois = Whois::lookup('securesslcheck.com');
// output
^ array:8 [▼
"tld" => "COM"
"domain" => "SECURESSLCHECK.COM"
"created" => "2025-03-07 06:49:26"
"updated" => "2025-03-08 08:52:28"
"expiry" => "2026-03-07 06:49:26"
"registrar" => "Dynadot Inc"
"status" => "ACTIVE"
"name_server" => array:2 [▼
0 => "NS1.DYNA-NS.NET"
1 => "NS2.DYNA-NS.NET"
]
]