PHPackages                             highwire/better-dom-document - 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. highwire/better-dom-document

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

highwire/better-dom-document
============================

BetterDOMDocument is a handy PHP utility class for working with XML. It's a wrapper for PHP's built in DOMDocument that provides a bunch of nice shortcuts that makes working with XML in PHP a breeze. It has great built-in support for namespaces, and xpath.

4.0.1(1y ago)1526.3k↓38.5%BSD-3-Clause

Since Dec 9Compare

[ Source](https://github.com/highwire/opensource-php-BetterDOMDocument)[ Packagist](https://packagist.org/packages/highwire/better-dom-document)[ Docs](https://github.com/highwire/opensource-php-BetterDOMDocument)[ RSS](/packages/highwire-better-dom-document/feed)WikiDiscussions Synced 1mo ago

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

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/highwire/opensource-php-BetterDOMDocument).

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity74

Established project with proven stability

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

Recently: every ~98 days

Total

24

Last Release

594d ago

Major Versions

2.1.6 → 3.0.02021-09-28

3.0.14 → 4.0.02024-10-01

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/highwire-better-dom-document/health.svg)

```
[![Health](https://phpackages.com/badges/highwire-better-dom-document/health.svg)](https://phpackages.com/packages/highwire-better-dom-document)
```

###  Alternatives

[roach-php/core

A complete web scraping toolkit for PHP

1.5k352.4k3](/packages/roach-php-core)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[wa72/htmlpagedom

jQuery-inspired DOM manipulation extension for Symfony's Crawler

3383.9M34](/packages/wa72-htmlpagedom)[vdb/php-spider

A configurable and extensible PHP web spider

1.4k181.0k7](/packages/vdb-php-spider)[dominikb/composer-license-checker

Utility to check for licenses of dependencies and block/allow them.

563.8M9](/packages/dominikb-composer-license-checker)[dusterio/link-preview

Link preview generation for PHP with Laravel support

126326.6k3](/packages/dusterio-link-preview)

PHPackages © 2026

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