PHPackages                             xternalsoft/php-whois - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. xternalsoft/php-whois

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

xternalsoft/php-whois
=====================

PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. Based on io-developer/php-whois v4.1.10.

1.0.0(today)01↑2900%MITPHPPHP &gt;=8.2CI passing

Since Apr 3Pushed todayCompare

[ Source](https://github.com/XternalSoft/php-whois)[ Packagist](https://packagist.org/packages/xternalsoft/php-whois)[ Docs](https://github.com/xternalsoft/php-whois)[ RSS](/packages/xternalsoft-php-whois/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

PHP WHOIS
=========

[](#php-whois)

[![PHP version](https://camo.githubusercontent.com/d840cef9807c8f76051ad687841d67f4d830c84e0d83236968e53124ef6742d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e322d3838393242462e737667)](https://secure.php.net/)[![Packagist](https://camo.githubusercontent.com/ae08299da3758807be9b72100d13b5e8e781baa975eb743d3dacac10dba451d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f787465726e616c736f66742f7068702d77686f69732e737667)](https://packagist.org/packages/xternalsoft/php-whois)

PHP WHOIS client implementation. Sends the queries directly to the WHOIS services.

> **Project Origin**: This project is a maintained fork of [io-developer/php-whois](https://github.com/io-developer/php-whois). This version (`1.0.0`) is based on the original version `4.1.10`.

⚠️ Important: Rate Limiting &amp; IP Blocking
---------------------------------------------

[](#️-important-rate-limiting--ip-blocking)

WHOIS servers often implement strict rate limiting policies. Sending too many queries in a short period of time may result in your IP address being temporarily or permanently blocked by the WHOIS server.

It is strongly recommended to:

- Implement a caching layer (see [Response caching](#response-caching)).
- Avoid bulk lookups without significant delays between requests.
- Respect the terms of service of each registry.

Use case
--------

[](#use-case)

- Raw and parsed domain lookup
- Raw and parsed ASN routes lookup
- Direct queries to TLD/ASN hosts
- Extending and customizing the default hosts, parsers, etc.
- Proxying via CurlLoader

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

[](#installation)

##### System requirements:

[](#system-requirements)

- PHP &gt;= **8.2**
- php-curl
- php-mbstring
- Open port **43** in firewall

Optional:

- php-intl
- php-memcached + Memcached server

##### Project requirements:

[](#project-requirements)

- PSR-4 autoloader

##### Composer:

[](#composer)

```
composer require xternalsoft/php-whois

```

or composer.json:

```
"require": {
    "xternalsoft/php-whois": "^1.0"
}

```

Usage
-----

[](#usage)

### Domain lookup

[](#domain-lookup)

##### How to get summary about domain:

[](#how-to-get-summary-about-domain)

```
