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

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

jkphl/dom-factory
=================

Simple HTML5/XML DOM factory

v1.0.1(4y ago)1167.7k↓21.4%4[2 PRs](https://github.com/jkphl/dom-factory/pulls)6MITPHPPHP &gt;=7.2

Since May 24Pushed 4y ago2 watchersCompare

[ Source](https://github.com/jkphl/dom-factory)[ Packagist](https://packagist.org/packages/jkphl/dom-factory)[ Docs](https://github.com/jkphl/dom-factory)[ RSS](/packages/jkphl-dom-factory/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (6)Used By (6)

jkphl/dom-factory
=================

[](#jkphldom-factory)

[![Build Status](https://camo.githubusercontent.com/4cf502479861e7ae7f6ea96fe49460e2437750f24d86d6504c0d047533320098/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a6b70686c2f646f6d2d666163746f72792e737667)](https://travis-ci.org/jkphl/dom-factory) [![Coverage Status](https://camo.githubusercontent.com/da173684cb5685a7477bbd7db7e98980e15f270e824104d471e654d3d3060155/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6a6b70686c2f646f6d2d666163746f72792f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/jkphl/dom-factory?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/d59cef28724e3fa571e7f88bb2211cd4d31be6f065406407279d28c96b5d28b0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6b70686c2f646f6d2d666163746f72792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jkphl/dom-factory/?branch=master) [![Code Climate](https://camo.githubusercontent.com/c0177c62d4fd9a52263cee3b3606c9726b7176f7de325365a276d3635223c3a7/68747470733a2f2f6c696d612e636f6465636c696d6174652e636f6d2f6769746875622f6a6b70686c2f646f6d2d666163746f72792f6261646765732f6770612e737667)](https://lima.codeclimate.com/github/jkphl/dom-factory) [![Clear architecture](https://camo.githubusercontent.com/46cba3a6536205bb0009f2aabb66c4ae732b162bb6321610f94c6dd6cf6fe74c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436c6561722532304172636869746563747572652d2545322539432539342d627269676874677265656e2e737667)](https://github.com/jkphl/clear-architecture)

> Simple HTML5/XML DOM factory

Documentation
-------------

[](#documentation)

Please find the [project documentation](doc/index.md) in the `doc` directory.

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

[](#installation)

This library requires PHP &gt;=7.2 or later. I recommend using the latest available version of PHP as a matter of principle. It has no userland dependencies. It's installable and autoloadable via [Composer](https://getcomposer.org/) as [jkphl/dom-factory](https://packagist.org/packages/jkphl/dom-factory).

```
composer require jkphl/dom-factory
```

Alternatively, [download a release](https://github.com/jkphl/dom-factory/releases) or clone this repository, then require or include its [`autoload.php`](autoload.php) file.

Dependencies
------------

[](#dependencies)

[![Composer dependency graph](https://camo.githubusercontent.com/1b2cd75729aabe1c26269f6b705a9bf05191469008d981e923ddb88c077333f9/68747470733a2f2f7261776769742e636f6d2f6a6b70686c2f646f6d2d666163746f72792f6d61737465722f646f632f646570656e64656e636965732e737667)](https://camo.githubusercontent.com/1b2cd75729aabe1c26269f6b705a9bf05191469008d981e923ddb88c077333f9/68747470733a2f2f7261776769742e636f6d2f6a6b70686c2f646f6d2d666163746f72792f6d61737465722f646f632f646570656e64656e636965732e737667)

Quality
-------

[](#quality)

To run the unit tests at the command line, issue `composer install` and then `phpunit` at the package root. This requires [Composer](http://getcomposer.org/) to be available as `composer`, and [PHPUnit](http://phpunit.de/manual/) to be available as `phpunit`.

This library attempts to comply with [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md), [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md), and [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md). If you notice compliance oversights, please send a patch via pull request.

Contributing
------------

[](#contributing)

Found a bug or have a feature request? [Please have a look at the known issues](https://github.com/jkphl/dom-factory/issues) first and open a new issue if necessary. Please see [contributing](CONTRIBUTING.md) and [conduct](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Joschi Kuphal](https://jkphl.is)
- [All Contributors](../../contributors)

License
-------

[](#license)

Copyright © 2020 [Joschi Kuphal](https://jkphl.is) / . Licensed under the terms of the [MIT license](LICENSE).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 87.2% 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 ~374 days

Total

5

Last Release

1777d ago

Major Versions

v0.1.2 → v1.0.02020-09-18

PHP version history (2 changes)v0.1.0PHP &gt;=5.6

v1.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9654aeebce6e58572ec7ee6e8b30a2f8f41a54a3c7a9580d1df090996f5cfdbb?d=identicon)[jkphl](/maintainers/jkphl)

---

Top Contributors

[![jkphl](https://avatars.githubusercontent.com/u/4446936?v=4)](https://github.com/jkphl "jkphl (34 commits)")[![blankse](https://avatars.githubusercontent.com/u/998558?v=4)](https://github.com/blankse "blankse (3 commits)")[![BenMorel](https://avatars.githubusercontent.com/u/1952838?v=4)](https://github.com/BenMorel "BenMorel (1 commits)")[![rvanlaak](https://avatars.githubusercontent.com/u/2707563?v=4)](https://github.com/rvanlaak "rvanlaak (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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