Skip to content

sokolnikov911/Whois

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whois, 'whois' command parser for PHP

Simple values parser from console 'whois' command

How to use

For example for obtaining NetName of IP address:

$whois = new Whois('8.8.8.8');
$answer = $whois->getProperty('netname');
print $answer; // LVLT-GOGL-8-8-8

Or, for obtaining 'Admin Email' of domain:

$whois = new Whois('google.com');
$answer = $whois->getProperty('admin email');
print $answer; // [email protected]

All properties should be in lowercase.

Installing Whois

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version of Whois

php composer.phar require sokolnikov911/whois

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

You can then later update Whois using composer:

composer.phar update

Requirements

This class requires installed console 'whois' package for Unix/Linux system.

License

This library is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages