PHPackages                             verrucktua/dns-library - 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. verrucktua/dns-library

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

verrucktua/dns-library
======================

A PHP library for retrieving DNS records for a specified domain name

00PHP

Since Jun 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/VerrucktUA/test_lara_1_v1)[ Packagist](https://packagist.org/packages/verrucktua/dns-library)[ RSS](/packages/verrucktua-dns-library/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DNS Library for Laravel
=======================

[](#dns-library-for-laravel)

This PHP library allows you to retrieve all DNS records for a specified domain name. It is designed to be used with the Laravel framework.

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

[](#requirements)

- PHP version 8.0 or later
- Composer for dependency management

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

[](#installation)

1. Open a terminal and navigate to your Laravel project directory.
2. Run the following command to install the library via Composer:

    ```
    composer require phoenix/dns-library
    ```

Usage
-----

[](#usage)

1. Import the `DnsLibrary` class into your code:

    ```
    use DnsLibrary\DnsLibrary;
    ```
2. Create an instance of the `DnsLibrary` class:

    ```
    $dnsLibrary = new DnsLibrary();
    ```
3. Use the `getDnsRecords` method to retrieve all DNS records for a domain:

    ```
    $domain = 'example.com';
    $records = $dnsLibrary->getDnsRecords($domain);
    ```

    The `$records` variable will contain an array of DNS records.
4. You can iterate over the records and perform any necessary operations:

    ```
    foreach ($records as $record) {
        // Perform operations on each DNS record
    }
    ```

Examples
--------

[](#examples)

### Retrieve DNS Records

[](#retrieve-dns-records)

```
use DnsLibrary\DnsLibrary;
$dnsLibrary = new DnsLibrary();
$domain = 'example.com';
$records = $dnsLibrary->getDnsRecords($domain);
foreach ($records as $record) {
echo $record['host'] . ' ' . $record['type'] . ' ' . $record['target'] . "\n";
}

```

This example retrieves all DNS records for the `example.com` domain and displays each record's host, type, and target.

Contributing
------------

[](#contributing)

If you would like to contribute to this library, please follow these steps:

1. Fork the repository on GitHub.
2. Create a new branch for your feature or bug fix.
3. Make your modifications and commit your changes.
4. Push your branch to your forked repository.
5. Submit a pull request to the main repository.

License
-------

[](#license)

This library is open-source and available under the [MIT License](LICENSE).

Credits
-------

[](#credits)

This library is developed and maintained by [VerrucktUA](https://github.com/VerrucktUA).

Feel free to provide any feedback, suggestions, or bug reports. Contributions are welcome!

By following the instructions in the README.md file, users will be able to set up and use your library effectively. Make sure to update the placeholders with the relevant information and provide accurate instructions based on your library's implementation.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/verrucktua-dns-library/health.svg)

```
[![Health](https://phpackages.com/badges/verrucktua-dns-library/health.svg)](https://phpackages.com/packages/verrucktua-dns-library)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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