PHPackages                             tonivdv/php-dom-utils - 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. tonivdv/php-dom-utils

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

tonivdv/php-dom-utils
=====================

Provides an easy way to fill a DOMDocument with an array

321PHP

Since Jul 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tonivdv/PhpDomUtils)[ Packagist](https://packagist.org/packages/tonivdv/php-dom-utils)[ RSS](/packages/tonivdv-php-dom-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Php Dom Utils
=============

[](#php-dom-utils)

[![Build Status](https://camo.githubusercontent.com/5c1ea9432cb2c7b8d5a4d58f44359c80a56189948a09ed65fb3c298001e4fb7e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f746f6e697664762f506870446f6d5574696c732e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/tonivdv/PhpDomUtils)

Provides an easy way to fill a DOMDocument with an array

```
$array = array(
  "nodes" => array(
    "node" => array(
      0 => "text1",
      1 => "text2"
    )));

$dom = new \DOMDocument('1.0', 'utf-8');

PhpDomUtils::fillDom($dom, $array);

echo $dom->saveXML();

```

Above example would output:

```

  text1
  text2

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c680c4ee39ba02387677eb4803b18010c8a630db2737f8306d4732716426bb4?d=identicon)[toni.vdv](/maintainers/toni.vdv)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tonivdv-php-dom-utils/health.svg)

```
[![Health](https://phpackages.com/badges/tonivdv-php-dom-utils/health.svg)](https://phpackages.com/packages/tonivdv-php-dom-utils)
```

###  Alternatives

[wyrihaximus/react-child-process-messenger

Messenger decorator for react/child-process

32279.4k4](/packages/wyrihaximus-react-child-process-messenger)[elisdn/php-hydrator

Simple object hydrator

4160.4k](/packages/elisdn-php-hydrator)[phpattempt/phpattempt

Helper function to enforce error-first approach in your code

1710.4k](/packages/phpattempt-phpattempt)

PHPackages © 2026

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