2017 © Pedro Peláez
 

library whois

Library for obtaining values from whois command

image

sokolnikov911/whois

Library for obtaining values from whois command

  • Saturday, May 7, 2016
  • by sokolnikov911
  • Repository
  • 1 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Whois, 'whois' command parser for PHP

Simple values parser from console 'whois' command, (*1)

How to use

For example for obtaining NetName of IP address:, (*2)

$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:, (*3)

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

All properties should be in lowercase., (*4)

Installing Whois

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

Next, run the Composer command to install the latest stable version of Whois, (*5)

php composer.phar require sokolnikov911/whois

After installing, you need to require Composer's autoloader:, (*6)

require 'vendor/autoload.php';

You can then later update Whois using composer:, (*7)

bash composer.phar update, (*8)

Requirements

This class requires installed console 'whois' package for Unix/Linux system., (*9)

License

This library is licensed under the MIT License., (*10)

The Versions

07/05 2016

dev-master

9999999-dev https://github.com/sokolnikov911/whois

Library for obtaining values from whois command

  Sources   Download

MIT

The Requires

  • php >=5.4.4

 

web service whois