PHPackages                             mallardduck/whois-server-list - 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-server-list

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

mallardduck/whois-server-list
=============================

A php library to look up the whois servers or a domain.

2.0.0(3y ago)17661MITPHPPHP ^8.0

Since Jul 28Pushed 3y ago3 watchersCompare

[ Source](https://github.com/mallardduck/php-whois-server-list)[ Packagist](https://packagist.org/packages/mallardduck/whois-server-list)[ RSS](/packages/mallardduck-whois-server-list/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (9)Versions (6)Used By (1)

mallardduck/whois-server-list
=============================

[](#mallardduckwhois-server-list)

 **A php library to look up the whois servers of a Top Level Domain.**

 [![Source Code](https://camo.githubusercontent.com/12ec8a54f9bd7d88068af4c71742afab43394e200e846b8ac57017ce9907d56a/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6d616c6c6172646475636b2f7068702d2d77686f69732d2d7365727665722d2d6c6973742d626c75652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/mallardduck/php-whois-server-list) [![Read License](https://camo.githubusercontent.com/c47dd003d504297fb2f530bd4d1b174b7065351fcc4325c71b34ed7ded7a81f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d616c6c6172646475636b2f7068702d77686f69732d7365727665722d6c6973743f7374796c653d666f722d7468652d626164676526636f6c6f72423d6461726b6379616e)](https://github.com/mallardduck/php-whois-server-list/blob/master/LICENSE) [![PHP Programming Language](https://camo.githubusercontent.com/446c95222339d8251f1f74b65a967e75f23af8b3a703458f9de6fd8aacec764a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d616c6c6172646475636b2f77686f69732d7365727665722d6c6973742e7376673f7374796c653d666f722d7468652d626164676526636f6c6f72423d253233383839324246)](https://php.net) [![Download Package](https://camo.githubusercontent.com/e19d3cb70fb1335731cb1cb19affc029b2506dc0a8e59adeaa4683bc23f4c6aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616c6c6172646475636b2f77686f69732d7365727665722d6c6973742e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d72656c65617365)](https://packagist.org/packages/mallardduck/whois-server-list) [![Package Download Count](https://camo.githubusercontent.com/1ae1f872c8abe499020c4e7d3a13f4d7c2915afb836c371509250b3f85b4a22b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616c6c6172646475636b2f77686f69732d7365727665722d6c6973743f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mallardduck/whois-server-list) [![Build Status](https://camo.githubusercontent.com/d66ef9b69cc1d1e78706cd4fd2e34e3b09d77b0858050546d9ee8ea4e5c330be/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d616c6c6172646475636b2f7068702d77686f69732d7365727665722d6c6973742f6275696c642f6d61696e3f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/mallardduck/php-whois-server-list/actions/workflows/continuous-integration.yml) [![Codecov Code Coverage](https://camo.githubusercontent.com/8b76612a78efc78ab71cc9f4c9dc11328654b9aa63f488ccfe86ba69f7cb7f8c/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f6d616c6c6172646475636b2f7068702d77686f69732d7365727665722d6c6973743f6c6162656c3d636f6465636f76266c6f676f3d636f6465636f76267374796c653d666f722d7468652d6261646765)](https://codecov.io/gh/mallardduck/php-whois-server-list) [![Psalm Type Coverage](https://camo.githubusercontent.com/b603044f18d54aa97c7f4cfa3857dbd63fa2d9c35d1cc87ddfd6a6440e1cd218/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666f722d7468652d62616467652675726c3d687474707325334125324625324673686570686572642e6465762532466769746875622532466d616c6c6172646475636b2532467068702d77686f69732d7365727665722d6c697374253246636f766572616765)](https://shepherd.dev/github/mallardduck/php-whois-server-list) [![Psalm Level](https://camo.githubusercontent.com/3397b123ab077983ccef6b7a4498f23b9c36f4a59d4984fb00f1a23a3a9f89b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5073616c6d2532304c6576656c2d312d677265656e3f7374796c653d666f722d7468652d6261646765)](https://shepherd.dev/github/mallardduck/php-whois-server-list)

About
-----

[](#about)

This package facilitates the discovery of the authoritative WHOIS server for top level domains. There are two lists to source the WHOIS server info from; the IANA TLD list and the Public Suffix List.

This project adheres to a [code of conduct](CODE_OF_CONDUCT.md). By participating in this project and its community, you are expected to uphold this code.

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

[](#installation)

Install this package as a dependency using [Composer](https://getcomposer.org).

```
composer require mallardduck/whois-server-list
```

Usage
-----

[](#usage)

Simply initialize a locator for the list you'd like to use.

```
use MallardDuck\WhoisDomainList\IanaServerLocator;

$ianaLocator = new IanaServerLocator();
echo $ianaLocator->getWhoisServer('aarp'); // whois.nic.aarp
```

Updating
--------

[](#updating)

The lists used by this package generate using the script in the `./generator` directory. This script will download a fresh copy of the list, then look up every TLDs whois server.

To update the list one would simply: clone this repo, run the generator, commit the changes and send a Pull Request.

Contributing
------------

[](#contributing)

Contributions are welcome! To contribute, please familiarize yourself with [CONTRIBUTING.md](CONTRIBUTING.md).

Copyright and License
---------------------

[](#copyright-and-license)

The mallardduck/whois-server-list library is copyright © [Dan Pock](mailto:self@danpock.me)and licensed for use under the terms of the MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~123 days

Total

5

Last Release

1257d ago

Major Versions

0.0.2 → 1.0.02021-07-29

1.1.0 → 2.0.02022-12-02

PHP version history (2 changes)0.0.1PHP ^7.4 || ^8.0

2.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 (42 commits)")

---

Tags

phpwhoiswhois-server-lookupwhoistldianaicann

###  Code Quality

TestsPest

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[jeremykendall/php-domain-parser

Public Suffix List and IANA Root Zone Database based Domain parsing implemented in PHP.

1.2k13.0M77](/packages/jeremykendall-php-domain-parser)[phpwhois/phpwhois

phpWhois - library for querying whois services and parsing results. Based on phpwhois.org

322392.6k1](/packages/phpwhois-phpwhois)[bakame/laravel-domain-parser

Laravel package to integrate PHP Domain parser.

26534.8k4](/packages/bakame-laravel-domain-parser)[novutec/whoisparser

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

392.0M1](/packages/novutec-whoisparser)[monovm/whois-php

This PHP package enables developers to retrieve domain registration information and check domain availability via socket protocol. It's a useful tool for web developers and domain name registrars.

564.7k](/packages/monovm-whois-php)[larva/laravel-whois

Whois Query Extension for Laravel.

1135.2k](/packages/larva-laravel-whois)

PHPackages © 2026

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