boltegg / whois
Whois class
Installs: 41
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/boltegg/whois
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-12-21 07:02:28 UTC
README
PHP class to retrieve WHOIS information.
Installing
composer require boltegg/whois @dev
Methods
Get whois information
<?php $whois = new \Whois(); $domain = 'google.com'; $whois_result = $whois->getInfo($domain); echo $whois_result;
Get domain status
<?php $whois = new \Whois(); if ($whois->isAvailable($domain)) { echo "Domain is available\n"; } else { echo "Domain is registered\n"; }