PHPackages                             hollisho/simplehtmldom - 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. hollisho/simplehtmldom

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

hollisho/simplehtmldom
======================

html dom parse

v1.0.0(1y ago)03MITPHPPHP ^7.0 || ^8.0

Since Apr 16Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

simple\_html\_dom
=================

[](#simple_html_dom)

[![Latest Stable Version](https://camo.githubusercontent.com/df75e6d2bb974b6bbaf461721c5ea3369eb954754576ca9764952361cd9af383/68747470733a2f2f706f7365722e707567782e6f72672f7765676c6f742f73696d706c6568746d6c646f6d2f762f737461626c65)](https://packagist.org/packages/weglot/simplehtmldom)[![License](https://camo.githubusercontent.com/1465c35a4178ada039382ee8a7826f2a3057e42791cac7b1380b3547e31ce96b/68747470733a2f2f706f7365722e707567782e6f72672f7765676c6f742f73696d706c6568746d6c646f6d2f6c6963656e7365)](https://packagist.org/packages/weglot/simplehtmldom)

Overview
--------

[](#overview)

Simple fork of [simple\_html\_dom](http://simplehtmldom.sourceforge.net/) PHP library with some tweaks.

Changelog
---------

[](#changelog)

Unit Test
---------

[](#unit-test)

1. 执行指定目录所有用例

```
$ ./vendor/phpunit/phpunit/phpunit --configuration phpunit.xml
```

2. 执行指定文件

```
$ ./vendor/phpunit/phpunit/phpunit --configuration phpunit.xml --test-suffix TemplateTest.php
```

3. 执行 TemplateTest 用例

```
$ ./vendor/phpunit/phpunit/phpunit --configuration phpunit.xml --filter TemplateTest
```

4. 执行 TemplateTest::test01 用例

```
$ ./vendor/phpunit/phpunit/phpunit --configuration phpunit.xml --filter TemplateTest::test01
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance47

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e8e63d951619620f1fabe34874623212834045e7ce9b77da8e47769c6e3d7a4?d=identicon)[hollisho](/maintainers/hollisho)

---

Top Contributors

[![hollisho](https://avatars.githubusercontent.com/u/13307208?v=4)](https://github.com/hollisho "hollisho (6 commits)")

---

Tags

htmldom

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hollisho-simplehtmldom/health.svg)

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

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[paquettg/php-html-parser

An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.

2.4k7.9M123](/packages/paquettg-php-html-parser)[sunra/php-simple-html-dom-parser

Composer adaptation of: A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way! Require PHP 5+. Supports invalid HTML. Find tags on an HTML page with selectors just like jQuery. Extract contents from HTML in a single line.

1.3k9.4M62](/packages/sunra-php-simple-html-dom-parser)[simplehtmldom/simplehtmldom

A fast, simple and reliable HTML document parser for PHP.

1921.3M14](/packages/simplehtmldom-simplehtmldom)[scotteh/php-dom-wrapper

Simple DOM wrapper to select nodes using either CSS or XPath expressions and manipulate results quickly and easily.

1471.9M10](/packages/scotteh-php-dom-wrapper)[rct567/dom-query

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

134261.0k4](/packages/rct567-dom-query)

PHPackages © 2026

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