PHPackages                             whoisdoma/dnsparser - 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. whoisdoma/dnsparser

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

whoisdoma/dnsparser
===================

Preferm DNS lookups for domains

21.4kPHP

Since Oct 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Whoisdoma/DNSParser)[ Packagist](https://packagist.org/packages/whoisdoma/dnsparser)[ RSS](/packages/whoisdoma-dnsparser/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Whoisdoma DNS Parser
====================

[](#whoisdoma-dns-parser)

Lookup dns records for domains

Copyright (c) 2016 XAOS Interactive () | Whoisdoma ()

Licensed under the MIT License (the "License").

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

[](#installation)

Installing using composer:

```
composer require whoisdoma/dnsparser
composer require whoisdoma/domainparser

```

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

See Whoisdoma Domain Parser () or [download the latest release](https://github.com/WhoisdomaDomainParser/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 'DNSParser/Parser.php';

```

- or if using composer:

```
use Whoisdoma\DomainParser\Parser as DomainParser;
use Whoisdoma\DNSParser\Parser as DNSParser;

```

- Create Parser() object

```
$Parser = new Whoisdoma\DNSParser\Parser();

```

- Call lookup() method

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

```

- Access DNS 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 Whoisdoma\DNSParser\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');

```

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)

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

[](#3rd-party-libraries)

We are using our own Domain Parser:

- Whoisdoma:  (Version 1.0.0 and above)

ChangeLog
---------

[](#changelog)

See ChangeLog at

Issues
------

[](#issues)

Please report any issues via

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

[](#license-and-copyright)

Copyright (c) 2016 XAOS Interactive () | Whoisdoma ()

License:

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

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.

### Community

Maintainers

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

---

Top Contributors

[![xaoseric](https://avatars.githubusercontent.com/u/643544?v=4)](https://github.com/xaoseric "xaoseric (7 commits)")[![OwenMelbz](https://avatars.githubusercontent.com/u/1094740?v=4)](https://github.com/OwenMelbz "OwenMelbz (1 commits)")

### Embed Badge

![Health badge](/badges/whoisdoma-dnsparser/health.svg)

```
[![Health](https://phpackages.com/badges/whoisdoma-dnsparser/health.svg)](https://phpackages.com/packages/whoisdoma-dnsparser)
```

###  Alternatives

[fungio/google-calendar-bundle

Provides a google calendar integration for your Symfony 3 Project.

1042.2k](/packages/fungio-google-calendar-bundle)[ttree/contentrepositoryimporter

Helper package to import data in the Neos content repository

1510.2k](/packages/ttree-contentrepositoryimporter)

PHPackages © 2026

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