PHPackages                             yocto/yoclib-dns - 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. yocto/yoclib-dns

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

yocto/yoclib-dns
================

This yocLibrary enables your project to do DNS-specific operations.

v1.0.0(1y ago)2473↓50%GPL-3.0-or-laterPHPPHP ^8CI passing

Since Mar 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yocto/yoclib-dns-php)[ Packagist](https://packagist.org/packages/yocto/yoclib-dns)[ RSS](/packages/yocto-yoclib-dns/feed)WikiDiscussions master Synced 1mo ago

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

yocLib - DNS (PHP)
==================

[](#yoclib---dns-php)

This yocLibrary enables your project to do DNS-specific operations.

Status
------

[](#status)

[![PHP Composer](https://github.com/yocto/yoclib-dns-php/actions/workflows/php.yml/badge.svg)](https://github.com/yocto/yoclib-dns-php/actions/workflows/php.yml)[![codecov](https://camo.githubusercontent.com/469d0c35c27c83fccfd609eca92689c2baecda8969e1c99b4ffe38831b899346/68747470733a2f2f636f6465636f762e696f2f67682f796f63746f2f796f636c69622d646e732d7068702f67726170682f62616467652e737667)](https://codecov.io/gh/yocto/yoclib-dns-php)

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

[](#installation)

`composer require yocto/yoclib-dns`

Usage
-----

[](#usage)

### Deserializing

[](#deserializing)

```
use YOCLIB\DNS\Helpers\TypeHelper;

// Deserialize from presentation format
$aRecord = TypeHelper::deserializeFromPresentationFormatByClassAndType('127.0.0.1',DNSClass::IN,DNSType::A);

// Deserialize from wire format
$aRecord = TypeHelper::deserializeFromWireFormatByClassAndType("\x7F\x00\x00\x01",DNSClass::IN,DNSType::A);
```

### Serializing

[](#serializing)

```
use YOCLIB\DNS\Types\A;

$aRecord = new A('127.0.0.1');

// Serialize to presentation format
$aRecord->serializeToPresentationFormat();

// Serialize to wire format
$aRecord->serializeToWireFormat();
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance46

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

418d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

composerdnsdnssecphpyoclibyoctophpcomposerdnsDNSSECyoctoyoclib

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yocto-yoclib-dns/health.svg)

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

###  Alternatives

[liborm85/composer-vendor-cleaner

Composer Vendor Cleaner removes unnecessary development files and directories from vendor directory.

35342.7k1](/packages/liborm85-composer-vendor-cleaner)[camcima/php-geohash

Refactored GeoHash package

1074.0k](/packages/camcima-php-geohash)

PHPackages © 2026

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