PHPackages                             xandco/whoisproxy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. xandco/whoisproxy

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

xandco/whoisproxy
=================

Whois Proxy, queries whois servers over http proxy.

v1.0.0(5y ago)2311MITPHP

Since Apr 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/xandco/whoisproxy)[ Packagist](https://packagist.org/packages/xandco/whoisproxy)[ Docs](https://github.com/xandco/whoisproxy)[ RSS](/packages/xandco-whoisproxy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (5)Versions (9)Used By (0)

WhoisProxy
==========

[](#whoisproxy)

[![Latest Version on Packagist](https://camo.githubusercontent.com/70ea1c07ff24e4d0719c346ca4ffa2d856381d0735b378b81aa24b5a9120c6ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f78616e64636f2f77686f697370726f78792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xandco/whoisproxy)[![Total Downloads](https://camo.githubusercontent.com/7059a083f074b47431bc9e0d3e5f78dd0aaeaf1c2495a2b2b18d200b78dd9db5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f78616e64636f2f77686f697370726f78792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xandco/whoisproxy)[![License](https://camo.githubusercontent.com/02262eff6f75395e926138de61c43e0032981e3e7f3c38810a3488a461a45a1c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f78616e64636f2f77686f697370726f78793f7374796c653d666c61742d737175617265)](https://github.com/xandco/whoisproxy/blob/master/license.md)

Whois Proxy lets you easily query a whois server from behind an http proxy.

During the query process, the package will connect to the http proxy you provide. Once successfully connected the package will query the default whois server, or a provided whois server on port 43 with the supplied domain and when successful the package will return the raw whois query.

This is for educational purposes only and not meant to circumvent any of the rate-limiting or ip banning systems these whois servers may have implemented. Use at your own risk.

Installation
------------

[](#installation)

Install this package via composer:

```
$ composer require xandco/whoisproxy
```

This service provider must be installed (if using anything below Laravel 5.5)

```
// config/app.php

'providers' => [
    WhoisProxy\WhoisProxyServiceProvider::class,
];
```

Publish and customize configuration file with:

```
$ php artisan vendor:publish --provider="WhoisProxy\WhoisProxyServiceProvider"
```

Usage
-----

[](#usage)

Create new `WhoisProxy` object:

```
use WhoisProxy\WhoisProxy;
...
$whoisProxy = new WhoisProxy( $options = [] );
```

Then call `query()` method to query a whois server:

```
// This will query the default whois server
$whoisProxy->query( 'example.com' );

// You can also provide a specific whois server
$whoisProxy->query( 'example.com', 'whois.verisign-grs.com' );
```

You can also call the `deepQuery()` method to automatically find and query the most authoritative whois server for the specified domain (usually the registrars whois server):

```
$whoisProxy->deepQuery( 'example.com' );
```

Here is an example of the output:

```
Domain Name: EXAMPLE.COM
Registry Domain ID: 2336799_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.iana.org
Registrar URL: http://res-dom.iana.org
Updated Date: 2019-08-14T07:04:41Z
Creation Date: 1995-08-14T04:00:00Z
Registry Expiry Date: 2020-08-13T04:00:00Z
Registrar: RESERVED-Internet Assigned Numbers Authority
Registrar IANA ID: 376
Registrar Abuse Contact Email:
Registrar Abuse Contact Phone:
Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
Name Server: A.IANA-SERVERS.NET
Name Server: B.IANA-SERVERS.NET
DNSSEC: signedDelegation
URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/
>>> Last update of whois database: 2020-07-07T07:56:32Z
