PHPackages                             netzmacht/contao-dom-manipulator - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. netzmacht/contao-dom-manipulator

AbandonedArchivedContao-module[PDF &amp; Document Generation](/categories/documents)

netzmacht/contao-dom-manipulator
================================

This extension integrates the PHP dom manipulator into Contao.

1.0.0(11y ago)141LGPL-3.0+PHPPHP &gt;=5.3.2

Since Dec 15Pushed 7y ago2 watchersCompare

[ Source](https://github.com/netzmacht-archive/contao-dom-manipulator)[ Packagist](https://packagist.org/packages/netzmacht/contao-dom-manipulator)[ RSS](/packages/netzmacht-contao-dom-manipulator/feed)WikiDiscussions master Synced 1mo ago

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

Contao dom document manipulator
===============================

[](#contao-dom-document-manipulator)

[![No Maintenance Intended](https://camo.githubusercontent.com/d904056147052e22d8e1c7f46bb50293ed2aeb4c43ead9a2d0cf7a48b46d0562/687474703a2f2f756e6d61696e7461696e65642e746563682f62616467652e737667)](http://unmaintained.tech/)[![Build Status](https://camo.githubusercontent.com/f025a80bbf66f62d19a07495a37ab1a5bd8e7ac92023a27a5b49ac0dc7939a79/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f6e65747a6d616368742f636f6e74616f2d646f6d2d6d616e6970756c61746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/netzmacht/contao-dom-manipulator)[![Version](https://camo.githubusercontent.com/7b82d65eb36d2d163675bbff5292a374b091f53e4e47eb22e719edf61287df22/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65747a6d616368742f636f6e74616f2d646f6d2d6d616e6970756c61746f722e7376673f7374796c653d666c61742d737175617265)](http://packagist.com/packages/netzmacht/contao-dom-manipulator)[![License](https://camo.githubusercontent.com/68e1b57833c93f477c76a7e4c485f6269bb9f657825068863206a77785278e82/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e65747a6d616368742f636f6e74616f2d646f6d2d6d616e6970756c61746f722e7376673f7374796c653d666c61742d737175617265)](http://packagist.com/packages/netzmacht/contao-dom-manipulator)[![Downloads](https://camo.githubusercontent.com/f66700ed334135f5f3ca120c759397a3c07b4d99ba7722ec8ba76a88fca1ee6c/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e65747a6d616368742f636f6e74616f2d646f6d2d6d616e6970756c61746f722e7376673f7374796c653d666c61742d737175617265)](http://packagist.com/packages/netzmacht/contao-dom-manipulator)[![Contao Community Alliance coding standard](https://camo.githubusercontent.com/5c83beb382413cbfa523bbea12d70d0723a803b3f7cbba029609ed1848dfa99b/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6363612d636f64696e675f7374616e646172642d7265642e7376673f7374796c653d666c61742d737175617265)](https://github.com/contao-community-alliance/coding-standard)

This extension integrates the PHP dom document manipulator into Contao.

Install
-------

[](#install)

This library can be installed using composer

```
$ php composer.phar require netzmacht/contao-dom-manipulator:~1.0
$ php composer.phar updatet

```

Usage
-----

[](#usage)

This extension hooks into the `parseFrontendTemplate` and `parseBackendTemplate` hook. It provides 4 events:

- `Netzmacht\Contao\DomManipulator\Events::CREATE_MANIPULATOR`It's the event which collects the rules and creates the manipulator.
- `Netzmacht\Contao\DomManipulator\Events::START_MANIPULATE`It's just a state notification event. It's called before the manipulation starts.
- `Netzmacht\Contao\DomManipulator\Events::STOP_MANIPULATE`It's just a state notification event. It's called before the manipulation stops.
- `Netzmacht\Contao\DomManipulator\Events::LOAD_HTML`It's called right before the html is load into the manipulator. Use it to fix hml if something is going wrong when loading html into the dom.

To get more details how to create rules have a look at [netzmacht/php-dom-manipulator](https://github.com/netzmacht/php-dom-manipulator).

Credits
-------

[](#credits)

This extension initially was extracted from the [toflar/contao-css-class-replacer](https://github.com/Toflar/contao-css-class-replacer)which is maintained by Yanick Witschi alias [@Toflar](https://github.com/Toflar).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

4166d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8189209?v=4)[netzmacht](/maintainers/netzmacht)[@netzmacht](https://github.com/netzmacht)

---

Top Contributors

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

---

Tags

htmldomcontaodocumentmanipulate

### Embed Badge

![Health badge](/badges/netzmacht-contao-dom-manipulator/health.svg)

```
[![Health](https://phpackages.com/badges/netzmacht-contao-dom-manipulator/health.svg)](https://phpackages.com/packages/netzmacht-contao-dom-manipulator)
```

###  Alternatives

[faisalman/simple-excel-php

Easily parse / convert / write between Microsoft Excel XML / CSV / TSV / HTML / JSON / etc formats

582599.4k1](/packages/faisalman-simple-excel-php)[netcarver/textile

Textile markup language parser

2311.5M16](/packages/netcarver-textile)[scannerjs/scanner.js

ScannerJS: JavaScript web scan JPG PDF images from TWAIN WIA scanners in browser (Chrome, Edge, Firefox or IE)

5914.3k](/packages/scannerjs-scannerjs)

PHPackages © 2026

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