PHPackages                             superrosko/dig - 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. superrosko/dig

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

superrosko/dig
==============

DNS resolver for PHP

2.11.13(5y ago)1541[2 PRs](https://github.com/superrosko/dig/pulls)MITPHPPHP &gt;=7.2.5

Since Dec 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/superrosko/dig)[ Packagist](https://packagist.org/packages/superrosko/dig)[ Docs](https://github.com/superrosko/dig)[ RSS](/packages/superrosko-dig/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (59)Used By (0)

dig
===

[](#dig)

[![Packagist Version](https://camo.githubusercontent.com/46bb50b9658b8bb2bfef8256a61a26dbf4e2429941b6a75e899b13a78430e915/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7375706572726f736b6f2f6469672e7376673f7374796c653d666c6174)](https://packagist.org/packages/superrosko/dig)[![Packagist](https://camo.githubusercontent.com/eb690a6c92c974687fd81475cf47a6b937a05086a3c1c270c07d4b549c9fc86b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7375706572726f736b6f2f6469672e7376673f7374796c653d666c6174)](LICENSE.md)[![GitHub code size in bytes](https://camo.githubusercontent.com/3d62de10cd97f6e9d2115f22c50d8cd035633d55eb22590c2522c08dc6f29215/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f7375706572726f736b6f2f6469672e7376673f7374796c653d666c6174)](https://github.com/superrosko/dig)[![PHP from Packagist](https://camo.githubusercontent.com/1dafa03fea50108f505f2db5fb92089f29aff8fcfd46f3de056f3f78a8d7550a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7375706572726f736b6f2f6469672e7376673f7374796c653d666c6174)](https://packagist.org/packages/superrosko/dig)[![GitHub top language](https://camo.githubusercontent.com/62a8e4b790cb85c8d0ddc63549fc7b34db5af120be5f532d6ec6047e7485cf46/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f7375706572726f736b6f2f6469672e7376673f7374796c653d666c6174)](https://github.com/superrosko/dig)[![Codecov](https://camo.githubusercontent.com/178e33b6a3d6b0c9b705aa7697e67b21d20c990eb3647fa0a252e1142acf9437/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f7375706572726f736b6f2f6469672e737667)](https://codecov.io/github/superrosko/dig?branch=master)

Introduction
------------

[](#introduction)

DNS resolver for PHP.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.2.5
- dnsutils

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

[](#installation)

Install the latest version with

```
$ composer require superrosko/dig
```

### Docker

[](#docker)

#### Git clone

[](#git-clone)

```
git clone git@github.com:superrosko/dig.git .
```

#### Run initialization

[](#run-initialization)

```
make initial
```

Usage
-----

[](#usage)

Domain names MUST be converted to punycode with idn\_to\_ascii!

### Docker

[](#docker-1)

Restart docker compose:

```
make compose_restart
```

Install dependencies:

```
make deps_install
```

Update dependencies:

```
make deps_update
```

App php exec:

```
make php_exec COMMAND="-v"
```

App bash exec:

```
make bash_exec
```

App initialization:

```
make initial
```

Check tests:

```
make check_tests
```

Check codecov:

```
make check_codecov
```

Credits
-------

[](#credits)

- [Dmitriy Bespalov](https://github.com/superrosko)
- [All Contributors](https://github.com/superrosko/dig/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[![HitCount](https://camo.githubusercontent.com/f487adea8e031683d6188e686f7e5b7c03348b8ca0bd711d8235f03c69dba75d/687474703a2f2f686974732e6477796c2e636f6d2f7375706572726f736b6f2f6469672e737667)](http://hits.dwyl.com/superrosko/dig)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~4 days

Total

56

Last Release

2148d ago

Major Versions

0.1.3 → 1.0.02020-06-09

1.1.0 → 2.0.02020-06-13

PHP version history (2 changes)0.0.3PHP &gt;=7.1.0

1.0.0PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d579736b4d9531e04d9dfbfd05f75ae1b79f3b57b7f38769377bc071ed5637b?d=identicon)[DmitriyBespalov](/maintainers/DmitriyBespalov)

---

Top Contributors

[![superrosko](https://avatars.githubusercontent.com/u/23222142?v=4)](https://github.com/superrosko "superrosko (121 commits)")

---

Tags

dnsdns-resolverdns\_get\_record

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/superrosko-dig/health.svg)

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

###  Alternatives

[mobiledetect/mobiledetectlib

Mobile\_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

10.7k170.9M526](/packages/mobiledetect-mobiledetectlib)[illuminate/contracts

The Illuminate Contracts package.

706130.3M13.3k](/packages/illuminate-contracts)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

378604.0k104](/packages/flow-php-etl)[phiki/phiki

Syntax highlighting using TextMate grammars in PHP.

3693.8M57](/packages/phiki-phiki)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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