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
Ip2Whois Php

Ip2Whois Php Laravel Package

ip2whois/ip2whois-php

Official PHP client for the IP2WHOIS API, enabling IP geolocation and WHOIS domain lookups in Laravel and PHP applications. Retrieve country, region, city, ISP, timezone, currency, and domain registration details through simple SDK methods.

Deep Wiki
Context7

ip2whois/ip2whois-php is the official PHP client for the IP2WHOIS API, letting you look up WHOIS data for domain names and IP addresses from a single, lightweight library. It returns details such as registrar, registration and expiry dates, and owner information, plus geolocation data for IPs. With a simple API-key setup, it drops easily into any PHP or Laravel project.

  • WHOIS lookup for domains and IPv4/IPv6 addresses
  • Returns registrar, dates, and registrant details
  • IP geolocation support
  • Simple API-key configuration
  • PSR-friendly, Composer-installable
Frequently asked questions about Ip2Whois Php
How do I install the IP2WHOIS PHP SDK in a Laravel project?
Install the package with Composer using composer require ip2whois/ip2whois-php. Laravel autoloads Composer packages, so no manual file includes are needed. After installation, instantiate the SDK client and provide your IP2WHOIS API key as described in the package documentation.
What can I look up with ip2whois/ip2whois-php?
The SDK queries the IP2WHOIS API for WHOIS information about domains and IP addresses. It can return registration, ownership, and location details. Use it to add domain or IP intelligence to Laravel applications.
Does this package work with all Laravel versions?
It is a PHP SDK installed through Composer, so it is not tightly coupled to a specific Laravel release. It should work with Laravel versions that meet its PHP and dependency requirements. Check the package composer.json for the exact PHP version constraints before installing.
How do I configure the IP2WHOIS API key in Laravel?
The SDK needs an IP2WHOIS API key to authenticate requests. Store the key in your .env file and pass it to the client, typically through a Laravel config file or service provider binding. Avoid hard-coding credentials in source control.
Can I use this SDK to check WHOIS for an IP address instead of a domain?
Yes, the package is described as supporting WHOIS lookups for both IP addresses and domains. Use the appropriate SDK method for the lookup type you need. The response includes registration, ownership, and location details where available.
Is ip2whois/ip2whois-php suitable for production use in Laravel?
It is a lightweight API client, so production suitability depends on how your app handles API errors, timeouts, and rate limits. Cache repeated lookups instead of calling the API on every request. Also monitor your IP2WHOIS plan limits and keep your API key secure.
How do I test IP2WHOIS lookups without hitting the live API?
The package does not document a built-in Laravel fake, so isolate the SDK behind a service or interface that you can mock. In tests, bind a fake implementation in Laravel's container or mock the underlying HTTP transport where possible. Keep live IP2WHOIS API calls out of your normal test suite.
What are alternatives to ip2whois/ip2whois-php for WHOIS lookups in Laravel?
Alternatives include direct WHOIS command-line tools, other WHOIS API providers, or IP intelligence services such as MaxMind for geolocation. Choose based on whether you need domain registration data, IP ownership data, or both. This SDK fits well when you want a simple PHP client for the IP2WHOIS API.
Does the SDK return geolocation data for IP addresses?
The package description says it retrieves registration, ownership, and location details. Exact response fields depend on the IP2WHOIS API and your subscription plan. Inspect the returned data structure in the package documentation before relying on specific location fields.
How do I handle errors and rate limits with the IP2WHOIS PHP SDK?
Wrap lookup calls in try-catch blocks and log API errors without exposing keys or sensitive data. Respect IP2WHOIS rate limits by caching results and backing off on failures. Check the API response for error codes and handle them gracefully in your Laravel application.
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.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core