2017 © Pedro Peláez
 

library php-whois

a class written in php for get domain information

image

smoqadam/php-whois

a class written in php for get domain information

  • Thursday, April 14, 2016
  • by smoqadam
  • Repository
  • 1 Watchers
  • 3 Stars
  • 47 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Whois

a class for get domain information, (*1)

Install

create a composer.json and put the following code in it :, (*2)

{
    "require": {
        "smoqadam/php-whois": "@dev"
    }
}

then run $ composer install, (*3)

How to use

 <?php

require 'src/Smoqadam/Whois.php';

$whois = new Smoqadam\Whois();

echo $whois->getDomainInfo('google.com');

if($whois->isAvailable('google.com'))
    echo 'GOOGLE.COM is available for register';
else
    echo 'GOOGLE.COM is not available for register';

if you want to return output as HTML just set the second parameter to True, (*4)

 <?php

require 'src/Smoqadam/Whois.php';

$whois = new Smoqadam\Whois();

echo $whois->getDomainInfo('google.com',true);

The Versions

14/04 2016

dev-master

9999999-dev

a class written in php for get domain information

  Sources   Download

MIT

by Avatar smoqadam