Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Whois

Laravel Whois Laravel Package

larva/laravel-whois

A Laravel package for performing WHOIS domain lookups through a clean, expressive API. Retrieve registrar, registration and expiration details, with configurable caching and support for multiple TLDs. Easily integrate domain ownership checks into any Laravel application.

View on GitHub
Deep Wiki
Context7

larva/laravel-whois is a lightweight Laravel package for performing WHOIS lookups directly from your application. It wraps WHOIS queries behind a clean, framework-friendly API so you can retrieve domain registration details without dealing with raw socket handling or parsing inconsistencies.

Ideal for domain monitoring dashboards, expiry reminders, or registration validation, the package integrates naturally with Laravel's service container and configuration.

  • Simple facade/service API for querying domains
  • Returns structured data: registrar, creation/expiry dates, nameservers
  • Configurable caching to reduce repeated WHOIS requests
  • Publishable config for timeouts and server settings
  • Laravel-native exceptions for failed or invalid lookups
Frequently asked questions about Laravel Whois
How do I install larva/laravel-whois in a Laravel application?
Install it with composer require larva/laravel-whois. Laravel package auto-discovery registers the service provider and facade, and you can publish the config file with php artisan vendor:publish to set TLD servers, timeouts, and parsing options. Confirm the PHP and Laravel version constraints in composer.json first, then make one lookup in a test route or tinker session.
Does larva/laravel-whois support Laravel 11 and Laravel 12?
The package follows standard Laravel package conventions, so it should fit Laravel 10, 11, and 12 if its composer.json allows those constraints. The README excerpt is missing, so verify the PHP 8.1+ and Laravel version matrix before committing. A 2025 release date shows recent activity but does not prove test coverage across every Laravel major.
Can I check if a domain is available with this Laravel WHOIS package?
You can perform a WHOIS query and infer availability from registry responses such as no match or not found, but those phrases differ by TLD and are not authoritative. Redaction, rate limiting, and per-TLD parser gaps can produce false negatives or empty results. Treat availability as a signal and confirm with the registrar or an RDAP lookup before acting on it.
Does larva/laravel-whois support RDAP or only legacy WHOIS?
Based on the package description and technical assessment, larva/laravel-whois is a legacy WHOIS over TCP port 43 wrapper with no stated RDAP path. Ask the maintainer directly whether an RDAP fallback exists or is planned. Because ICANN mandates RDAP, design your adapter so you can add an RDAP implementation without changing call sites.
How do I handle WHOIS rate limiting and blocked cloud IPs in Laravel?
The package is a thin protocol wrapper, so caching, rate limiting, retries, and queueing are your responsibility. Run lookups in queued jobs with exponential backoff, cache parsed results with a TTL, and route egress through an IP with good registry reputation. Cloud provider IPs are frequently blocked, so test from your actual production network early.
Is it safe to depend on larva/laravel-whois in production?
Treat it as unproven rather than broken: it has 11 stars, zero dependents, and a single maintainer, so no third party has stress-tested it in production. The recent 2025 release is a positive activity signal but says little about long-term stewardship. Put it behind your own interface, add a feature flag, and keep a commercial API or RDAP client as a fallback.
How should I structure WHOIS lookups in Laravel so the package is replaceable?
Define a DomainLookup contract and a normalized result object in your application, then implement a LaravelWhoisAdapter that calls the package inside that class. Bind the interface in a service provider and inject it into controllers, jobs, and models instead of referencing the facade directly. That keeps the vendor package as replaceable plumbing and limits a future swap to one class.
What happens when a WHOIS server times out or returns a malformed response?
Expect timeouts, connection resets, and malformed responses to surface as exceptions, nulls, or partial parsed data depending on the package internals, so test each case against a stub. Configure short connection and read timeouts, catch package exceptions in your adapter, and log raw responses for malformed cases. Return a clear failed-lookup result rather than silently treating it as domain-not-found.
How do I test WHOIS lookups in a Laravel test suite without hitting live servers?
Mock your own DomainLookup interface or the package facade so tests never open a TCP connection to port 43. Use fixture WHOIS responses to test your parser and normalized DTO, and keep live integration tests optional and excluded from CI. If the package ships no fakes, your adapter abstraction is what makes the code testable.
What are alternatives to larva/laravel-whois for domain lookups?
Consider RDAP clients, commercial WHOIS or domain intelligence APIs, or a small IANA-bootstrap client if you need full control. If you are currently hand-rolling fsockopen or stream_socket_client calls, this package is a reasonable consolidation of socket handling. If you are replacing a mature provider, it is a reliability downgrade rather than a like-for-like swap.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections