Skip to content

mallardduck/php-whois-client

Repository files navigation

Whois Client PHP Library

Travis Build Status Scrutinizer Code Quality Code Coverage Code Intelligence Status Latest Stable Version License Coverage Status

If you are working with Whois in PHP this library provides a very basic client.

Rather than focus on the user friendly output this library focuses on the raw Whois protocol. The library is limited in function since it's intended to be a low-level client that handles only request and raw output. Basically the package supports the look up of a TLDs primary Whois server and then will do a query of the domain provided.

Requirements

  • PHP >= 7.0

Features

  • Pure PHP based Whois client.
  • Simple API for getting raw Whois results in PHP.
  • Unicode IDN and punycode support.

Installation

The best installation method is to simply use composer.

Stable version

composer require mallardduck/whois-client

Latest development version

composer require "mallardduck/whois-client":"dev-master"

Example usage

require 'vendor/autoload.php';

use MallardDuck\Whois\Client;

$client = new Client;
$results = $client->lookup('google.com');

To-Do

Before Stable

  • Expand the Server List locator to support IPv4
  • Expand the Server List locator to support IPv6

Before V2/V1.5 (?)

  • Look into supporting actual TLD lookups. (i.e. looking up "com" tld's whois info)

License

Whois Client PHP Library is open source software licensed under the GPLv3 license.

About

A very basic Whois client for PHP. The library limits function to be a low-level client that handles only request and raw output.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

Languages