Skip to content

PHP class to retrieve WHOIS information.

Notifications You must be signed in to change notification settings

shapito27/php-whois

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-whois

PHP class to retrieve WHOIS information.

Installation

composer require "phois/whois"

Example of usage

<?php
require_once __DIR__ . '/src/Phois/Whois/Whois.php';

$domain = 'nabi.ir';

try {
    $domain = new Phois\Whois\Whois($domain);
} catch (InvalidArgumentException $e) {
    die($e->getMessage() . '\n');
}

if ($domain->isAvailable()) {
	echo "Domain is available\n";
} else {
	echo "Domain is registered\n";
}

About

PHP class to retrieve WHOIS information.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%