PHPackages                             tuxonice/php-simple-html-dom-parser - 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. tuxonice/php-simple-html-dom-parser

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

tuxonice/php-simple-html-dom-parser
===================================

Fork of sunra/php-simple-html-dom-parser with improvements and fixes.

v2.0.0(8mo ago)0968↓13.3%MITPHPPHP ^8.1

Since Mar 8Pushed 8mo agoCompare

[ Source](https://github.com/tuxonice/php-simple-html-dom-parser)[ Packagist](https://packagist.org/packages/tuxonice/php-simple-html-dom-parser)[ Docs](https://github.com/tuxonice/php-simple-html-dom-parser)[ RSS](/packages/tuxonice-php-simple-html-dom-parser/feed)WikiDiscussions master Synced 1mo ago

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

php-simple-html-dom-parser
==========================

[](#php-simple-html-dom-parser)

This package is a fork of [sunra/php-simple-html-dom-parser](https://github.com/sunra/php-simple-html-dom-parser) with improvements and fixes. The original work was created by:

- S.C. Chen ()
- Sunra ()

This fork is distributed under the MIT License, same as the original project.

Install
-------

[](#install)

```
composer require tuxonice/php-simple-html-dom-parser:^2.0
```

Usage
-----

[](#usage)

```
use Tlab\HtmlDomParser\HtmlDomParser;

// Parse from a string
$dom = HtmlDomParser::str_get_html($str);
// or parse from a file
$dom = HtmlDomParser::file_get_html($file_name);

// Find elements using CSS selectors
$elems = $dom->find($elem_name);

// Example: Find all links
$links = $dom->find('a');
foreach($links as $link) {
    echo $link->href . "\n";
}
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance62

Regular maintenance activity

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80.6% 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 ~926 days

Total

2

Last Release

241d ago

Major Versions

v0.1.0 → v2.0.02025-09-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0ac6e7d4f75cdd8867257456d47a9d3ce0c38c9633cb3aded61ca50f8e5cfbf?d=identicon)[tuxonice](/maintainers/tuxonice)

---

Top Contributors

[![sunra](https://avatars.githubusercontent.com/u/635370?v=4)](https://github.com/sunra "sunra (50 commits)")[![tuxonice](https://avatars.githubusercontent.com/u/916066?v=4)](https://github.com/tuxonice "tuxonice (3 commits)")[![WanderingZombie](https://avatars.githubusercontent.com/u/675501?v=4)](https://github.com/WanderingZombie "WanderingZombie (3 commits)")[![mlocati](https://avatars.githubusercontent.com/u/928116?v=4)](https://github.com/mlocati "mlocati (2 commits)")[![zio-mitch](https://avatars.githubusercontent.com/u/5042579?v=4)](https://github.com/zio-mitch "zio-mitch (1 commits)")[![mryanb](https://avatars.githubusercontent.com/u/3656391?v=4)](https://github.com/mryanb "mryanb (1 commits)")[![shtse8](https://avatars.githubusercontent.com/u/8020099?v=4)](https://github.com/shtse8 "shtse8 (1 commits)")[![daigo75](https://avatars.githubusercontent.com/u/292434?v=4)](https://github.com/daigo75 "daigo75 (1 commits)")

---

Tags

parserhtmldom

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tuxonice-php-simple-html-dom-parser/health.svg)

```
[![Health](https://phpackages.com/badges/tuxonice-php-simple-html-dom-parser/health.svg)](https://phpackages.com/packages/tuxonice-php-simple-html-dom-parser)
```

###  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.4M61](/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)[oscarotero/html-parser

Parse html strings to DOMDocument

165.0M1](/packages/oscarotero-html-parser)

PHPackages © 2026

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