PHPackages                             mallardduck/whois-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mallardduck/whois-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mallardduck/whois-client
========================

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.

3.0.0(3y ago)162.0k33GPL-3.0-or-laterPHPPHP ^8.0CI failing

Since Feb 24Pushed 3y ago3 watchersCompare

[ Source](https://github.com/mallardduck/php-whois-client)[ Packagist](https://packagist.org/packages/mallardduck/whois-client)[ Docs](https://github.com/mallardduck/whois-client)[ RSS](/packages/mallardduck-whois-client/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (10)Versions (30)Used By (3)

Whois Client PHP Library
========================

[](#whois-client-php-library)

[![Source Code](https://camo.githubusercontent.com/f229f349060674a1e82636f48e302746054f9ba382c4ca2a56dd48dd9ad39bc3/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d736f75726365266d6573736167653d6d616c6c6172646475636b2f7068702d77686f69732d636c69656e7426636f6c6f723d626c7565267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mallardduck/whois-client)[![License](https://camo.githubusercontent.com/10cd7c77403fa055a0851e4b5f62ea8a28565fff0543e2275c965cd8053ad690/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d616c6c6172646475636b2f77686f69732d636c69656e743f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mallardduck/whois-client)[![PHP Version](https://camo.githubusercontent.com/b4a63bbfce7432af13f265a0564ba5fcb851e23c486c9849170b9eee476d38d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d616c6c6172646475636b2f77686f69732d636c69656e742e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mallardduck/whois-client)[![Latest Stable Version](https://camo.githubusercontent.com/674c0b8a5c06a948aabba44812009ab4a7ea44c99f8f3fe6cdf2e5f304b0546e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616c6c6172646475636b2f77686f69732d636c69656e743f6c6f676f3d7061636b6167697374266c6162656c3d52656c65617365267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mallardduck/whois-client)[![Total Download Count](https://camo.githubusercontent.com/65b0c61a9b77f939626f978c0d2f6640e58e10be4e3ebaaa56d6583c9523808c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616c6c6172646475636b2f77686f69732d636c69656e743f6c6f676f3d7061636b6167697374267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mallardduck/whois-client/stats)[![Travis Build Status](https://camo.githubusercontent.com/b5d0ff3d2da26b48552fa099e5f9071a8d3c6653de6e4c562fd144b40d1a7a97/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d616c6c6172646475636b2f7068702d77686f69732d636c69656e743f6c6f676f3d747261766973267374796c653d666f722d7468652d6261646765)](https://travis-ci.org/mallardduck/php-whois-client)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0fdfcbb2dac398c9a6a7921696de45ae0053fde9283c6668f19b0fd3c0db9bf5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6d616c6c6172646475636b2f7068702d77686f69732d636c69656e743f6c6f676f3d7363727574696e697a6572267374796c653d666f722d7468652d6261646765)](https://scrutinizer-ci.com/g/mallardduck/php-whois-client/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/415654b095206df1dff7032947c68539f8f808d6ff8eddd7ce13f498030e2d14/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6d616c6c6172646475636b2f7068702d77686f69732d636c69656e743f6c6f676f3d7363727574696e697a6572267374796c653d666f722d7468652d6261646765)](https://scrutinizer-ci.com/g/mallardduck/php-whois-client/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/fc831816c5c2ce25233b60bdaae6fca2fcc79c2369111aa0f13242d407cb897d/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f6d616c6c6172646475636b2f7068702d77686f69732d636c69656e743f6c6f676f3d636f766572616c6c73267374796c653d666f722d7468652d6261646765)](https://coveralls.io/github/mallardduck/php-whois-client?branch=master)

A message to Russian 🇷🇺 people
------------------------------

[](#a-message-to-russian--people)

If you currently live in Russia, please read [this message](./ToRussianPeople.md).

Purpose
-------

[](#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
------------

[](#requirements)

- PHP &gt;= 8.1

### Past PHP version support

[](#past-php-version-support)

PHPPackage8.0Current7.42.0.77.31.2.1Features
--------

[](#features)

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

Installation
------------

[](#installation)

The best installation method is to simply use composer.

### Stable version

[](#stable-version)

```
composer require mallardduck/whois-client
```

Example usage
-------------

[](#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
-------

[](#license)

Whois Client PHP Library is open source software licensed under the [GPLv3 license](LICENSE).

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 99.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~71 days

Recently: every ~163 days

Total

26

Last Release

1252d ago

Major Versions

0.5.0 → 1.0.02018-12-02

1.2.1 → 2.0.02021-03-01

2.0.7 → 3.0.02023-01-22

PHP version history (8 changes)0.0.0PHP ~5.6|~7.0

0.1.3PHP ~5.6 || ~7.0

0.5.0PHP ~7.1

1.2.0PHP ~7.2

2.0.0PHP ^7.4

2.0.4PHP ^7.4|^8.0

2.0.6PHP ^7.4 || ^8.0

3.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/801be8ba9bfb0cb2629f51f9753a0392683c2680fe3e941a188495840d920333?d=identicon)[MallardDuck](/maintainers/MallardDuck)

---

Top Contributors

[![mallardduck](https://avatars.githubusercontent.com/u/619938?v=4)](https://github.com/mallardduck "mallardduck (242 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

phpphp-librarywhoiswhois-clientwhois-lookupdomainwhoislookupwhois-clientRFC 3912

###  Code Quality

TestsPest

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mallardduck-whois-client/health.svg)

```
[![Health](https://phpackages.com/badges/mallardduck-whois-client/health.svg)](https://phpackages.com/packages/mallardduck-whois-client)
```

###  Alternatives

[io-developer/php-whois

PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. PHP 5.4+ and 7+ compatible

4842.6M12](/packages/io-developer-php-whois)[novutec/whoisparser

Lookup domain names, IP addresses and AS numbers by WHOIS.

392.0M1](/packages/novutec-whoisparser)[cocur/domain

Check domain name availability and WHOIS

691.3k](/packages/cocur-domain)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
