boltegg/whois

Whois class

Maintainers

Details

github.com/boltegg/whois

Source

Issues

Installs: 41

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/boltegg/whois

1.0.0 2016-03-09 19:58 UTC

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";
}