Download the PHP package otghcloud/laravel-whois without Composer
On this page you can find all versions of the php package otghcloud/laravel-whois. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download otghcloud/laravel-whois
More information about otghcloud/laravel-whois
Files in otghcloud/laravel-whois
Package laravel-whois
Short Description Laravel package for providing WHOIS/RDAP lookups
License MIT
Homepage https://github.com/otghcloud/laravel-whois
Informations about the package laravel-whois
Laravel RDAP/WHOIS Domain Lookups
A lightweight, all-in-one RDAP/WHOIS domain lookup tool built for Laravel.
Inspired by the excellent spatie/laravel-rdap package, our internal use case required legacy WHOIS support as many TLD's have not yet made the switch to RDAP.
Features
- Built-in Caching - Results are intelligently cached to avoid lookup throttling
- Comprehensive Data Parsing - Extract registrar, dates, nameservers, and more
- Multiple Data Sources - Support for both WHOIS and RDAP protocols
Installation
You can install the package via composer:
Configuration
If you wish to modify default lookup timeouts and caching behaviour, you can publish the config file by running the below:
This creates config/whois.php, where you can control cache behavior, timeouts, retries, strictness, and source preference.
Available options:
cache.enabled: Enables/disables response caching.cache.ttl: Cache duration in seconds.timeout_whois: WHOIS request timeout in seconds.timeout_rdap: RDAP request timeout in seconds.retry_attempts: Number of retry attempts for transient failures.retry_backoff: Backoff schedule (in seconds) applied across retries.lookup_mode:safereturns a parsed result with error metadata,strictthrows exceptions.default_sources: Default lookup order, e.g.['rdap', 'whois'].
Usage
The simplest way to get started is to use our global "whois" function:
Alternatively, you can include the Facade:
Credits
- jeremykendall/php-domain-parser - An amazing domain parsing package; used to determine the TLD/gTLD of a domain so we can select the correct RDAP/WHOIS endpoint.
- spatie/laravel-rdap - Alternative RDAP only lookup package for Laravel.
License
The MIT License (MIT). Please see LICENSE.md for more information.
All versions of laravel-whois with dependencies
illuminate/contracts Version ^13.0
jeremykendall/php-domain-parser Version ^6.0
nesbot/carbon Version ^3.11
symfony/polyfill-intl-idn Version ^1.32
