PHPackages                             martyn911/whois-parser - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. martyn911/whois-parser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

martyn911/whois-parser
======================

Lookup domain names, IP addresses and AS numbers by WHOIS.

v3.3.1(8y ago)26141Apache-2.0PHP

Since Apr 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Martyn911/WhoisParser)[ Packagist](https://packagist.org/packages/martyn911/whois-parser)[ Docs](https://github.com/martyn911/WhoisParser/)[ RSS](/packages/martyn911-whois-parser/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (9)Used By (0)

Novutec WHOIS Parser
====================

[](#novutec-whois-parser)

Lookup domain names, IP addresses and AS numbers by WHOIS.

Automatically follows the WHOIS registry referral chains until it finds the correct WHOIS for the most complete WHOIS data. Exceptionally robust WHOIS parser that parses a variety of free form WHOIS data into well-structured data that your application may read. Also returns an indication of whether a domain is available.

Copyright (c) 2007 - 2013 Novutec Inc. () Licensed under the Apache License, Version 2.0 (the "License").

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

[](#installation)

Installing from source: `git clone git://github.com/novutec/WhoisParser.git` or [download the latest release](https://github.com/novutec/WhoisParser/zipball/master)

See Novutec Domain Parser () or [download the latest release](https://github.com/novutec/DomainParser/zipball/master) and install it as well.

Move the source code to your preferred project folder.

Usage
-----

[](#usage)

- Include Parser.php

```
require_once 'DomainParser/Parser.php';
require_once 'WhoisParser/Parser.php';

```

- Create Parser() object

```
$Parser = new Novutec\WhoisParser\Parser();

```

- Call lookup() method

```
$result = $Parser->lookup($domain);
$result = $Parser->lookup($ipv4);
$result = $Parser->lookup($ipv6);
$result = $Parser->lookup($asn);

```

- Access WHOIS record, the object oriented way.

```
echo $result->created; // get create date of domain name
print_r($result->rawdata); // get raw output as array

```

- You may choose 5 different return types. the types are array, object, json, serialize and xml. By default it is object. If you want to change that call the format method before calling the parse method or provide to the constructer.

```
$Parser->setFormat('json');
$Parser = new Novutec\WhoisParser\Parser('json');

```

- You may set your own date format if you like. Please check  for further details

```
$Parser->setDateFormat('%d.%m.%Y %H:%M:%S');

```

- If you have special WHOIS server or login credentials for a registrar WHOIS you may use the method setSpecialWhois(). Please note that if you have a special WHOIS and the WHOIS output looks different you need your own template.

```
$Parser->setSpecialWhois(array('it' => array('server' => 'whois.nic.it', 'port' => 43,
'format' => '-u username -w passsword %domain%', 'template' => 'it-your-own-template')));

```

ToDos
-----

[](#todos)

- Caching of data for better performance and to reduce requests
- Change HTTP Adapter to use GET/POST
- Change Socket Adapter to be able to use Socks to split requests.

Known bugs to be fixed in further versions
------------------------------------------

[](#known-bugs-to-be-fixed-in-further-versions)

- \[Template\] gTLD cps-datensysteme - need caching for testing, because after 5 requests you get blocked
- \[Template\] .BJ - recursive lookup for handles

Tested with following RIRs and TLDs
-----------------------------------

[](#tested-with-following-rirs-and-tlds)

RIRs

```
[x] Afrinic
[x] Apnic
[x] Arin
[x] Krnic
[x] Lacnic
[x] Ripe

```

ccTLDs ()

```
[x] AC
[ ] AD
[x] AE
[x] AERO
[x] AF
[x] AG
[x] AI
[ ] AL
[x] AM
[ ] AN
[ ] AO
[ ] AQ
[ ] AR - webbased
[x] ARPA
[x] AS
[x] ASIA
[x] AT
[x] AU
[ ] AW
[x] AX
[ ] AZ - webbased
[ ] BA - webbased
[ ] BB - webbased with captcha
[ ] BD
[x] BE
[ ] BF
[x] BG
[ ] BH
[x] BI
[x] BIZ
[ ] BJ - need recursive calls for handles
[ ] BM - webbased
[ ] BN
[x] BO
[x] BR
[ ] BS - webbased
[ ] BT
[ ] BV - no domains but it is NORID
[ ] BW
[x] BY
[x] BZ
[x] CA
[x] CAT
[x] CC
[x] CD
[ ] CF
[ ] CG - webbased with captcha
[x] CH
[ ] CI - need recursive calls for handles
[x] CK
[ ] CL - possible
[x] CM
[x] CN
[x] CO
[x] COM
[x] COOP
[ ] CR
[ ] CU
[ ] CV
[ ] CW
[x] CX
[ ] CY
[x] CZ
[x] DE
[x] DE Registrar WHOIS
[ ] DJ
[x] DK
[x] DM
[ ] DO - whois.nic.do is broken
[x] DZ
[x] EC
[x] EDU
[x] EE
[ ] EG
[ ] ER
[x] ES
[ ] ET
[x] EU
[x] FI
[x] FJ
[ ] FK
[x] FM
[x] FO
[x] FR
[ ] GA
[ ] GB
[x] GD
[ ] GE
[ ] GF
[x] GG
[ ] GH
[x] GI
[X] GL
[ ] GM
[ ] GN
[ ] GOV - to few domain names
[ ] GP
[ ] GQ
[ ] GR
[x] GS
[ ] GT  - webbased
[ ] GU
[ ] GW
[x] GY
[x] HK
[x] HM
[x] HN
[ ] HR - possible
[x] HT
[ ] HU - webbased with captcha
[x] ID
[x] IE
[X] IL
[x] IM
[x] IN
[x] INFO
[x] INT
[x] IO
[x] IQ
[X] IR
[X] IS
[x] IT
[x] IT Registrar WHOIS
[x] JE
[ ] JM
[ ] JO
[x] JOBS
[x] JP
[x] KE
[x] KG
[ ] KH
[x] KI
[ ] KM
[ ] KN
[ ] KP
[x] KR
[ ] KW
[ ] KY
[x] KZ
[x] LA
[ ] LB
[x] LC
[x] LI
[ ] LK (whois.nic.lk)
[ ] LR
[ ] LS
[x] LT
[x] LU
[x] LV
[x] LY
[ ] MA - possible
[ ] MC
[x] MD
[x] ME
[x] MG
[ ] MH
[ ] MIL - useless
[ ] MK
[ ] ML
[ ] MM
[x] MN
[ ] MO - near useless, better whois webbased but with captcha
[x] MOBI
[ ] MP - whois on port 43 broken
[ ] MQ
[ ] MR
[x] MS
[ ] MT (whois.nic.org.mt) with captcha
[x] MU
[x] MUSEUM
[ ] MV
[ ] MW
[x] MX
[ ] MY - possible
[ ] MZ
[x] NA
[x] NAME
[x] NAME Registrar WHOIS
[x] NC
[ ] NE
[x] NET
[x] NF
[x] NG
[ ] NI
[x] NL
[x] NL Registrar WHOIS
[x] NO
[ ] NP
[ ] NR
[x] NU
[x] NZ
[x] OM
[x] ORG
[ ] PA
[x] PE
[ ] PF
[ ] PG
[ ] PH
[ ] PK - webbased
[x] PL
[x] PM
[ ] PN
[x] PR
[x] PRO
[x] PS
[x] PT
[x] PW
[ ] PY
[x] QA
[x] RE
[x] RO
[x] RS
[ ] RU - possible
[ ] RW
[ ] SA - possible
[x] SB
[x] SC
[ ] SD
[ ] SE - possible
[x] SG
[x] SH
[ ] SI - possible
[ ] SJ - no domains but it is NORID
[x] SK
[ ] SL
[x] SM
[ ] SN - whois on port 43 broken
[x] SO
[ ] SR
[x] ST
[x] SU
[ ] SV
[x] SX
[x] SY
[ ] SZ
[x] TC
[ ] TD
[x] TEL
[x] TF
[ ] TG
[x] TH
[ ] TJ
[x] TK
[x] TL
[x] TM
[x] TN
[ ] TO - useless
[ ] TP
[x] TR
[x] TRAVEL
[ ] TT - webbased
[x] TV
[x] TW
[x] TZ
[x] UA
[x] UG
[x] UK
[x] US
[x] UY
[ ] UZ - possible
[ ] VA
[x] VC
[x] VE
[x] VG
[ ] VI
[ ] VN
[x] VU
[x] WF
[x] WS
[x] XN--3E0B707E - .kr
[x] XN--45BRJ9C - .in
[x] XN--80AO21A - .kz
[x] XN--90A3AC - .rs
[ ] XN--CLCHC0EA0B2G2A9GCD - possible .sg
[x] XN--FIQS8S - .cn
[x] XN--FIQZ9S - .cn
[x] XN--FPCRJ9C3D - .in
[ ] XN--FZC2C9E2C - .lk
[x] XN--GECRJ9C - .in
[x] XN--H2BRJ9C - .in
[ ] XN--HGBK6AJ7F53BBA
[ ] XN--HLCJ6AYA9ESC7A
[x] XN--J6W193G - .hk
[x] XN--KPRW13D - .tw
[x] XN--KPRY57D - .tw
[x] XN--LGBBAT1AD8J - .dz
[x] XN--MGBAAM7A8H - .ae
[ ] XN--MGBAYH7GPA - .jo
[x] XN--MGBBH1A71E - .in
[ ] XN--MGBC0A9AZCG - .ma
[ ] XN--MGBERP4A5D4AR - possible .sa
[x] XN--O3CW4H - .th
[x] XN--OGBPF8FL - .sy
[ ] XN--P1AI - possible .ru
[ ] XN--PGBS0DH - .tn
[x] XN--S9BRJ9C - .in
[ ] XN--WGBH1C - .eg
[x] XN--WGBL6A - .qa
[ ] XN--XKC2AL3HYE2A -.lk
[x] XN--XKC2DL3A5EE0H - .in
[x] XN--YFRO4I67O - .sg
[x] XN--YGBI2AMMX - .ps
[x] XXX
[ ] YE
[x] YT
[ ] ZA - webbased whois.co.za
[ ] ZM
[ ] ZW

```

Special TLDs

```
[x] CentralNic (https://www.centralnic.com/names/domains)
[x] CO.NL
[x] CO.NO
[x] COM.CC
[x] ORG.CC
[x] EDU.CC
[x] NET.CC

```

gTLDs and thin registries sort by IANA ID ()

```
[x] 2 (Network Solutions, LLC)
[x] 9 (Register.com, Inc.)
[x] 13 (Melbourne IT, Ltd)
[x] 15 (Corehub, S.R.L.)
[x] 30 (NameSecure LLC)
[x] 48 (eNom, Inc.)
[x] 49 (GMO Internet, Inc. d/b/a Onamae.com)
[x] 52 (Hostopia.com Inc. d/b/a Aplus.net)
[ ] 65 (DomainPeople, Inc.)
[x] 66 (Enameco, LLC)
[x] 69 (Tucows Domains Inc.)
[x] 79 (Easyspace Limited)
[x] 81 (Gandi SAS)
[x] 83 (1&1 Internet AG)
[x] 85 (EPAG Domainservices GmbH)
[x] 88 (Namebay SAM)
[x] 91 (007Names, Inc.)
[x] 104 (Domainsite.com, Inc)
[x] 106 (Ascio Technologies, Inc. - Denmark)
[x] 113 (CSL Computer Service Langenbach GmbH d/b/a joker.com)
[ ] 120 (Xin Net Technology Corporation)
[x] 131 (Total Web Solutions Limited trading as TotalRegistrations)
[x] 140 (Acens Technologies, S.L.U.)
[x] 141 (Cronon AG)
[x] 146 (GoDaddy.com, LLC)
[x] 151 (PSI-USA, Inc. dba Domain Robot)
[x] 226 (Deutsche Telekom AG)
[x] 228 (Moniker Online Services LLC)
[x] 240 (PlanetDomain Pty Ltd)
[x] 245 (123 Registration, Inc.)
[x] 269 (Key-Systems GmbH)
[x] 291 (DNC Holdings, Inc.)
[x] 292 (MarkMonitor Inc.)
[x] 303 (PDR Ltd. d/b/a PublicDomainRegistry.com)
[x] 320 (TLDS L.L.C. d/b/a SRSPlus)
[x] 363 (Funpeas Media Ventures, LLC dba DomainProcessor.com)
[x] 378 (2030138 Ontario Inc. dba NamesBeyond.com and dba GoodLuckDomain.com)
[x] 380 (Tuonome.it Srl d/b/a APIsrs.com)
[x] 401 (Misk.com, Inc.)
[x] 411 (Fabulous.com Pty Ltd.)
[x] 418 (CommuniGal Communication Ltd.)
[x] 420 (HiChina Zhicheng Technology Limited)
[x] 430 (Net Searchers International Ltd.)
[x] 431 (DreamHost, LLC)
[x] 440 (Wild West Domains, LLC)
[x] 455 (EnCirca, Inc.)
[ ] 471 (Bizcn.com, Inc.)
[x] 625 (Name.com LLC)
[x] 634 (NetTuner Corp. dba Webmasters.com)
[x] 648 (Webagentur.at Internet Services GmbH d/b/a domainname.at)
[x] 670 ($$$ Private Label Internet Service Kiosk, Inc. dba "PLISK.com")
[x] 710 (! ! ! $0 Cost Domain and Hosting Services, Inc.)
[x] 828 (Hetzner Online AG)
[x] 886 (Domain.com, LLC)
[x] 888 (Pheenix, Inc.)
[x] 913 (PocketDomain.com Inc.)
[x] 931 (UdomainName.com LLC)
[x] 940 (Above.com Pty Ltd.)
[x] 946 (FindYouADomain.com LLC)
[x] 996 (DomainAdministration.com, LLC)
[x] 1040 (Dynamic Network Services, Inc.)
[x] 1052 (EuroDNS S.A.)
[x] 1149 (Go China Domains, LLC)
[x] 1154 (FastDomain Inc.)
[x] 1159 (Allearthdomains.com LLC)
[x] 1165 (Biglizarddomains.com LLC)
[x] 1169 (Columbianames.com LLC)
[x] 1173 (Domainarmada.com LLC)
[x] 1176 (Domaincomesaround.com LLC)
[x] 1192 (Domainsoftheworld.net LLC)
[x] 1201 (Domainyeti.com LLC)
[x] 1207 (EUTurbo.com LLC)
[x] 1211 (Godomaingo.com LLC)
[x] 1220 (Nameemperor.com LLC)
[x] 1231 (Protondomains.com LLC)
[x] 1232 (Skykomishdomains.com LLC)
[x] 1239 (CPS-Datensysteme GmbH)
[x] 1257 (Variomedia AG dba puredomain.com)
[x] 1328 (RegistryGate GmbH)
[x] 1336 (Net-Chinese Co., Ltd.)
[x] 1376 (Instra Corporation Pty Ltd.)
[x] 1387 (1API GmbH)
[x] 1408 (united-domains AG)
[x] 1420 (InterNetworX Ltd. & Co. KG)
[x] 1443 (Vautron Rechenzentrum AG)
[x] 1448 (Blacknight Internet Solutions Ltd.)
[x] 1454 (Nics Telekomünikasyon Ticaret Ltd. Şti.)
[x] 1479 (Namesilo, LLC)
[x] 1500 (Tirupati Domains And Hosting Pvt. Ltd.)
[x] 1505 (Gransy s.r.o. d/b/a subreg.cz)
[x] 1659 (Uniregistrar Corp)
[x] Novutec Inc.

```

3rd Party Libraries
-------------------

[](#3rd-party-libraries)

We are using our own Domain Parser:

- Novutec:  (Version 2.0.0 and above)

ChangeLog
---------

[](#changelog)

See ChangeLog at

Issues
------

[](#issues)

Please report any issues via

LICENSE and COPYRIGHT
---------------------

[](#license-and-copyright)

Copyright (c) 2007 - 2013 Novutec Inc. ()

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~149 days

Recently: every ~67 days

Total

8

Last Release

3005d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db3093f6b2d25000f9d2e3588be78b7ffced0c6a5166e0db9c19758f74c2b36c?d=identicon)[Martyn911](/maintainers/Martyn911)

---

Top Contributors

[![AllenJB](https://avatars.githubusercontent.com/u/5645829?v=4)](https://github.com/AllenJB "AllenJB (68 commits)")[![3name](https://avatars.githubusercontent.com/u/5710161?v=4)](https://github.com/3name "3name (27 commits)")[![koroban](https://avatars.githubusercontent.com/u/148569?v=4)](https://github.com/koroban "koroban (17 commits)")[![vraxoin](https://avatars.githubusercontent.com/u/1153717?v=4)](https://github.com/vraxoin "vraxoin (5 commits)")[![sarokse](https://avatars.githubusercontent.com/u/109381?v=4)](https://github.com/sarokse "sarokse (5 commits)")[![salemgolemugoo](https://avatars.githubusercontent.com/u/1916111?v=4)](https://github.com/salemgolemugoo "salemgolemugoo (4 commits)")[![maxzvonkov](https://avatars.githubusercontent.com/u/48809402?v=4)](https://github.com/maxzvonkov "maxzvonkov (4 commits)")[![sircovsw](https://avatars.githubusercontent.com/u/3596745?v=4)](https://github.com/sircovsw "sircovsw (3 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (2 commits)")[![adduc](https://avatars.githubusercontent.com/u/44527?v=4)](https://github.com/adduc "adduc (2 commits)")[![Martyn911](https://avatars.githubusercontent.com/u/9728008?v=4)](https://github.com/Martyn911 "Martyn911 (2 commits)")[![Shmee](https://avatars.githubusercontent.com/u/935622?v=4)](https://github.com/Shmee "Shmee (1 commits)")[![shrell](https://avatars.githubusercontent.com/u/8371534?v=4)](https://github.com/shrell "shrell (1 commits)")[![arendjantetteroo](https://avatars.githubusercontent.com/u/713066?v=4)](https://github.com/arendjantetteroo "arendjantetteroo (1 commits)")[![aotd1](https://avatars.githubusercontent.com/u/1684688?v=4)](https://github.com/aotd1 "aotd1 (1 commits)")[![bedemiralp](https://avatars.githubusercontent.com/u/149487?v=4)](https://github.com/bedemiralp "bedemiralp (1 commits)")[![Daniel15](https://avatars.githubusercontent.com/u/91933?v=4)](https://github.com/Daniel15 "Daniel15 (1 commits)")[![danielkraaijbax](https://avatars.githubusercontent.com/u/6949841?v=4)](https://github.com/danielkraaijbax "danielkraaijbax (1 commits)")[![joesweeny](https://avatars.githubusercontent.com/u/17063751?v=4)](https://github.com/joesweeny "joesweeny (1 commits)")[![adamnicholson](https://avatars.githubusercontent.com/u/7761178?v=4)](https://github.com/adamnicholson "adamnicholson (1 commits)")

---

Tags

phpwhoiswhoisparser

### Embed Badge

![Health badge](/badges/martyn911-whois-parser/health.svg)

```
[![Health](https://phpackages.com/badges/martyn911-whois-parser/health.svg)](https://phpackages.com/packages/martyn911-whois-parser)
```

###  Alternatives

[novutec/whoisparser

Lookup domain names, IP addresses and AS numbers by WHOIS.

392.0M1](/packages/novutec-whoisparser)[phpwhois/phpwhois

phpWhois - library for querying whois services and parsing results. Based on phpwhois.org

322392.6k1](/packages/phpwhois-phpwhois)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)[monovm/whois-php

This PHP package enables developers to retrieve domain registration information and check domain availability via socket protocol. It's a useful tool for web developers and domain name registrars.

564.7k](/packages/monovm-whois-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
