mallardduck / php-whois-client

A very basic Whois client for PHP. The library limits function to be a low-level client that handles only request and raw output.
GNU General Public License v3.0
16 stars 3 forks source link
php php-library whois whois-client whois-lookup

Whois Client PHP Library

Source Code License PHP Version Latest Stable Version Total Download Count Travis Build Status Scrutinizer Code Quality Code Coverage Coverage Status

A message to Russian 🇷🇺 people

If you currently live in Russia, please read this message.

Purpose

When you need to work with Whois lookups 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 its 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.

If you're looking for a higher level client, please use: Whodis.

Requirements

Past PHP version support

PHP Package
8.0 Current
7.4 2.0.7
7.3 1.2.1

Features

Installation

The best installation method is to simply use composer.

https://packagist.org/packages/mallardduck/whois-client

Stable version

composer require mallardduck/whois-client

Example usage

require __DIR__ . '/vendor/autoload.php';

use MallardDuck\Whois\Client;

$client = new Client('whois.nic.me');
$response = $client->makeRequest('danpock.me');
echo $response;

License

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