https://github.com/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.
https://github.com/mallardduck/php-whois-client
php php-library whois whois-client whois-lookup
Last synced: 8 months ago
JSON representation
A very basic Whois client for PHP. The library limits function to be a low-level client that handles only request and raw output.
- Host: GitHub
- URL: https://github.com/mallardduck/php-whois-client
- Owner: mallardduck
- License: gpl-3.0
- Created: 2018-02-24T04:40:42.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T01:58:44.000Z (over 3 years ago)
- Last Synced: 2025-10-04T09:50:21.948Z (9 months ago)
- Topics: php, php-library, whois, whois-client, whois-lookup
- Language: PHP
- Homepage:
- Size: 348 KB
- Stars: 17
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Whois Client PHP Library
[](https://packagist.org/packages/mallardduck/whois-client)
[](https://packagist.org/packages/mallardduck/whois-client)
[](https://packagist.org/packages/mallardduck/whois-client)
[](https://packagist.org/packages/mallardduck/whois-client)
[](https://packagist.org/packages/mallardduck/whois-client/stats)
[](https://travis-ci.org/mallardduck/php-whois-client)
[](https://scrutinizer-ci.com/g/mallardduck/php-whois-client/?branch=master)
[](https://scrutinizer-ci.com/g/mallardduck/php-whois-client/?branch=master)
[](https://coveralls.io/github/mallardduck/php-whois-client?branch=master)
## A message to Russian 🇷🇺 people
If you currently live in Russia, please read [this message](./ToRussianPeople.md).
## 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](https://github.com/mallardduck/whodis).
## Requirements
* PHP >= 8.1
### Past PHP version support
| PHP | Package |
|-----|---------|
| 8.0 | Current |
| 7.4 | 2.0.7 |
| 7.3 | 1.2.1 |
## 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.
https://packagist.org/packages/mallardduck/whois-client
### Stable version
```bash
composer require mallardduck/whois-client
```
## Example usage
```php
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](LICENSE).