A very basic Whois client for PHP. The library is limited in function since it's intended to be a low-level client that handles only request and raw output.
If you currently live in Russia, please read this message.
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.
- PHP >= 8.1
- Pure PHP based Whois client.
- Simple API for getting raw Whois results in PHP.
- Unicode IDN and punycode support.
The best installation method is to simply use composer.
composer require mallardduck/whois-client
require __DIR__ . '/vendor/autoload.php'; use MallardDuck\Whois\Client; $client = new Client('whois.nic.me'); $response = $client->makeRequest('danpock.me'); echo $response;
Whois Client PHP Library is open source software licensed under the GPLv3 license.