Download the PHP package larva/laravel-whois without Composer

On this page you can find all versions of the php package larva/laravel-whois. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-whois

laravel-whois

Build Status Stable Version Total Downloads License

基于 io-developer/php-whois 的 Laravel WHOIS 查询扩展,支持域名解析、结构化查询和原始响应获取。

环境需求

安装

扩展支持 Laravel 包自动发现,无需手动注册服务提供者或 Facade。

使用

在需要查询的类中引入 Facade:

结构化查询

查询成功时返回数组;无法获取结构化信息时返回 null。数组包含以下字段:

字段 说明
parser_type 响应解析器类型
name 域名
registrar 注册商
owner 所有者信息
whois_server WHOIS 服务器
states 域名状态数组
name_servers DNS 服务器数组
dnssec DNSSEC 信息
creation_date 注册时间,Illuminate\Support\Carbon 实例
expiration_date 过期时间,Illuminate\Support\Carbon 实例
updated_date 更新时间,Illuminate\Support\Carbon 实例
response_raw 原始 WHOIS 响应

获取完整查询对象

该方法返回 TldInfo 对象或 null,可访问解析库提供的完整字段和原始响应。

获取原始响应

解析域名

查询方法支持传入主域名、子域名或包含 URL 的字符串,并会自动提取可注册域名:

异常处理

查询结果取决于对应 WHOIS 服务器返回的数据,执行在线查询时请确保网络可以访问相关 WHOIS 服务。

测试

部分测试会访问真实 WHOIS 服务器,需要可用的网络连接。


All versions of laravel-whois with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/queue Version ^11.0|^12.0|^13.0
larva/support Version ^2.0
io-developer/php-whois Version ^4.1
jeremykendall/php-domain-parser Version ^6.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package larva/laravel-whois contains the following files

Loading the files please wait ...