Download the PHP package xternalsoft/php-whois without Composer
On this page you can find all versions of the php package xternalsoft/php-whois. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-whois
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. This version (
1.0.0) is based on the original version4.1.10.
⚠️ 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).
- Avoid bulk lookups without significant delays between requests.
- Respect the terms of service of each registry.
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
System requirements:
- PHP >= 8.2
- php-curl
- php-mbstring
- Open port 43 in firewall
Optional:
- php-intl
- php-memcached + Memcached server
Project requirements:
- PSR-4 autoloader
Composer:
or composer.json:
Usage
Domain lookup
How to get summary about domain:
Exceptions on domain lookup:
Proxy with SOCKS5:
TLD hosts customization:
TLD default/fallback servers:
ASN lookup
How to get summary using ASN number:
Response caching
Some TLD hosts are very limited for frequent requests. Use cache if in your case requests are repeating.
Develompment
Supported php versions are configured in docker-compose.yml
Common use cases:
- Set up & run all tests:
docker compose up --build - Run tests under specific php version:
docker compose up php-8.2_intl --build - Run scripts:
docker compose run php-8.2_intl bin/php-whois info google.com
Also see TESTS.md
Roadmap / TODO
- [ ] Implement RDAP (Registration Data Access Protocol) support as a modern alternative to WHOIS.
Contributing
The project is open for pull requests, issues and feedback. Please read the CODE_OF_CONDUCT.md
All versions of php-whois with dependencies
ext-curl Version *
ext-mbstring Version *
ext-json Version *
symfony/polyfill-intl-idn Version ^1.27