PHPackages                             wdalmut/dns-srv - 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. wdalmut/dns-srv

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

wdalmut/dns-srv
===============

0.0.2(10y ago)418MITPHP

Since May 7Pushed 10y agoCompare

[ Source](https://github.com/wdalmut/dns-srv)[ Packagist](https://packagist.org/packages/wdalmut/dns-srv)[ RSS](/packages/wdalmut-dns-srv/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Resolve services with SRV records
=================================

[](#resolve-services-with-srv-records)

Use DNS SRV records to resolve services.

- select records with minimum priority (as [RFC 2782](https://tools.ietf.org/html/rfc2782))
- use a RR algorithm over weights in order to select the right service (as RFC). The RR uses a standard distribution (mean 0, variance 1).

```
use Corley\Service\Dns;
use Corley\Service\Resolve;

$dns = new Resolve(new Dns());

$config = $dns->resolve("www.corsi.walterdalmut.com");

echo $config["target"]; // 1.corsi.walterdalmut.com
echo $config["port"];   // 80
echo $config["pri"];    // the min priority (1)
echo $config["weight"]; // the rr weight resource (10)
```

Resolve all
-----------

[](#resolve-all)

The `resolve` method returns a single DNS resolution, with `resolveAll` we can get the list of services with the minimum priority

```
$config = $dns->resolveAll("www.corsi.walterdalmut.com");

var_dump($config); // minimum priority list: [["pri" => 1, ...],[...],[...]]
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~1 days

Total

2

Last Release

3750d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wdalmut-dns-srv/health.svg)

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

###  Alternatives

[boldcommerce/magento2-ordercomments

Magento 2 Module to add a comment field above the place order button in the checkout

170781.5k](/packages/boldcommerce-magento2-ordercomments)[jubeki/laravel-code-style

Combine Custom Fixers with the ruleset of Laravel Pint to fix your code style in Laravel Applications/Packages.

56581.1k8](/packages/jubeki-laravel-code-style)[pdazcom/laravel-referrals

A referrals system for a laravel projects.

301.6k](/packages/pdazcom-laravel-referrals)[balbuf/composer-wp

Manage WordPress core, plugins, and themes with composer.

173.6k](/packages/balbuf-composer-wp)[spaze/csp-config

Build Content Security Policy from a config file

143.5k](/packages/spaze-csp-config)

PHPackages © 2026

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