Skip to content
forked from aquy/yii2-whois

PHP class to retrieve WHOIS information.

Notifications You must be signed in to change notification settings

overals/yii2-whois

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Whois

Yii2 extension to retrieve WHOIS information.

Installation

$ php composer.phar require overals/yii2-whois "~1.0.0"

OR

Add to your composer.json

{
    "require": {
        "overals/yii2-whois": "~1.0.0"
    }
}

and run

$ composer update

Example of usage

<?php

$domainName = 'wtools.io';

$domain = new \overals\whois\Whois($domainName);
$whois_answer = $domain->info();

echo $whois_answer;

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

Packages

No packages published

Languages

  • PHP 100.0%