PHPackages                             24hoursmedia/php-dom-manipulations - 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. 24hoursmedia/php-dom-manipulations

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

24hoursmedia/php-dom-manipulations
==================================

Collections of dom manipulations

v0.1.3(9y ago)0323[1 issues](https://github.com/24HOURSMEDIA/php-dom-manipulations/issues)1MITPHPPHP &gt;=5.6

Since Nov 21Pushed 9y agoCompare

[ Source](https://github.com/24HOURSMEDIA/php-dom-manipulations)[ Packagist](https://packagist.org/packages/24hoursmedia/php-dom-manipulations)[ Docs](https://github.com/24HOURSMEDIA/php-dom-manipulations)[ RSS](/packages/24hoursmedia-php-dom-manipulations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (1)

php-dom-manipulations
=====================

[](#php-dom-manipulations)

A library to manipulate dom.

Manipulators
------------

[](#manipulators)

#### GaAddCampaignToLinks

[](#gaaddcampaigntolinks)

Add google analytics campaign information to all links in a document.

Usage:

```
$html = 'aac';
$doc = new \DOMDocument();
$doc->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
$m = new \T4\DomManipulations\Manipulator\Ga\GaAddCampaignToLinks();
// source, medium, campaign
$m->modify($doc, 'newsletter-week14', 'email', 'spring');
$newHtml = $doc->saveHTML();

// $newHtml:
// aac

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

3457d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bff0ffa7c1cac050de6fd11c9ffb0bd942fec23829c1093903d8cfaa889bde3c?d=identicon)[24HOURSMEDIA](/maintainers/24HOURSMEDIA)

---

Top Contributors

[![24HOURSMEDIA](https://avatars.githubusercontent.com/u/4735950?v=4)](https://github.com/24HOURSMEDIA "24HOURSMEDIA (14 commits)")

### Embed Badge

![Health badge](/badges/24hoursmedia-php-dom-manipulations/health.svg)

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

PHPackages © 2026

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