PHPackages                             fluentdom/html5 - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. fluentdom/html5

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

fluentdom/html5
===============

HTML5 support for FluentDOM

2.0.0(5y ago)828.1k3[2 issues](https://github.com/ThomasWeinert/FluentDOM-HTML5/issues)1MITPHPPHP &gt;=7.2

Since Feb 2Pushed 5y ago2 watchersCompare

[ Source](https://github.com/ThomasWeinert/FluentDOM-HTML5)[ Packagist](https://packagist.org/packages/fluentdom/html5)[ Docs](http://fluentdom.org)[ RSS](/packages/fluentdom-html5/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (3)Versions (10)Used By (1)

FluentDOM-HTML5
===============

[](#fluentdom-html5)

[![License](https://camo.githubusercontent.com/d2c7f5490469648f925f872f3149e2ed37ecfcb4a519663d79aaa52469b22217/68747470733a2f2f706f7365722e707567782e6f72672f666c75656e74646f6d2f68746d6c352f6c6963656e73652e737667)](http://www.opensource.org/licenses/mit-license.php)[![CI](https://github.com/ThomasWeinert/FluentDOM-HTML5/actions/workflows/ci.yml/badge.svg)](https://github.com/ThomasWeinert/FluentDOM-HTML5/actions/workflows/ci.yml)[![Total Downloads](https://camo.githubusercontent.com/1c85331b0f1e6f684edab319d0519f831021e357ae30b7847f22cc809f8da156/68747470733a2f2f706f7365722e707567782e6f72672f666c75656e74646f6d2f68746d6c352f646f776e6c6f6164732e737667)](https://packagist.org/packages/fluentdom/html5)[![Latest Stable Version](https://camo.githubusercontent.com/f65f9298910dbf423dfe3ef2a6f5660ec3a5c6aaeb0d00696866bf1677d34f7f/68747470733a2f2f706f7365722e707567782e6f72672f666c75656e74646f6d2f68746d6c352f762f737461626c652e737667)](https://packagist.org/packages/fluentdom/html5)[![Latest Unstable Version](https://camo.githubusercontent.com/5fd6222ffd0cce1a2e5e64b8cf617307bc9f0c30eaf99910d8a08084b9206fd9/68747470733a2f2f706f7365722e707567782e6f72672f666c75656e74646f6d2f68746d6c352f762f756e737461626c652e737667)](https://packagist.org/packages/fluentdom/html5)

Adds support for HTML5 to FluentDOM. It adds a loader and a serializer. It uses the [HTML5-PHP](https://github.com/Masterminds/html5-php) library.

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

[](#installation)

```
composer require fluentdom/html5

```

Loader
------

[](#loader)

The loader registers automatically. You can trigger it with the types `html5` and `text/html5`.

```
$document = FluentDOM::load($html5, 'text/html5');
$query = FluentDOM($html5, 'text/html5');
```

Serializer
----------

[](#serializer)

The serializer needs to be created with a document and can be cast into a string.

```
echo new FluentDOM\Html5\Serializer($document);
```

Casting a Nodes/Query instance to a string will use it if the content type matches:

```
$query = FluentDOM($html5, 'text/html5');
echo $query;
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~286 days

Recently: every ~273 days

Total

9

Last Release

1882d ago

Major Versions

1.5.2 → 2.0.02021-05-08

PHP version history (4 changes)1.0.0PHP &gt;=5.4.0

1.2.0PHP &gt;=5.6.0

1.3.0PHP &gt;=7.0

2.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/236825?v=4)[Thomas Weinert](/maintainers/ThomasWeinert)[@ThomasWeinert](https://github.com/ThomasWeinert)

---

Top Contributors

[![ThomasWeinert](https://avatars.githubusercontent.com/u/236825?v=4)](https://github.com/ThomasWeinert "ThomasWeinert (30 commits)")

---

Tags

xmlHTML5domfluentdom

### Embed Badge

![Health badge](/badges/fluentdom-html5/health.svg)

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

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k269.7M321](/packages/masterminds-html5)[sabre/xml

sabre/xml is an XML library that you may not hate.

55234.6M141](/packages/sabre-xml)[veewee/xml

XML without worries

1837.0M39](/packages/veewee-xml)[fluentdom/fluentdom

A fluent api for the php dom extension.

342312.4k17](/packages/fluentdom-fluentdom)[rct567/dom-query

DomQuery is a PHP library that allows easy 'jQuery like' DOM traversing and manipulation

136269.4k4](/packages/rct567-dom-query)[gravitypdf/querypath

PHP library for HTML(5)/XML querying (CSS 4 or XPath) and processing (like jQuery) with PHP 7.1 to 8.5 support

301.5M1](/packages/gravitypdf-querypath)

PHPackages © 2026

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