PHPackages                             blockify/dom - 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. blockify/dom

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

blockify/dom
============

Blockify DOM package.

0821PHP

Since May 1Pushed 2y agoCompare

[ Source](https://github.com/blockifywp/dom)[ Packagist](https://packagist.org/packages/blockify/dom)[ RSS](/packages/blockify-dom/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Blockify DOM
============

[](#blockify-dom)

DOM manipulation library for PHP.

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

[](#installation)

```
composer require blockify/dom
```

Usage
-----

[](#usage)

### PHP

[](#php)

First, require Composer's autoloader:

```
require_once __DIR__ . '/vendor/autoload.php';
```

Then, use the library:

```
use Blockify\Dom\DOM;

$html = 'Hello, World!';

$dom = DOM::parse( $html );

$h1 = $dom->getElementsByTagName('h1')[0];

$h1->setAttribute('class', 'heading');

echo $dom->saveHTML();
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

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.

### Community

Maintainers

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

---

Top Contributors

[![seothemes](https://avatars.githubusercontent.com/u/24793388?v=4)](https://github.com/seothemes "seothemes (5 commits)")

### Embed Badge

![Health badge](/badges/blockify-dom/health.svg)

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

PHPackages © 2026

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