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

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

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.

v1.5.2(9y ago)1.3k9.6M↓33.9%346[30 issues](https://github.com/sunra/php-simple-html-dom-parser/issues)[21 PRs](https://github.com/sunra/php-simple-html-dom-parser/pulls)20MITHTMLPHP &gt;=5.3.2

Since May 4Pushed 2y ago51 watchersCompare

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

READMEChangelog (2)DependenciesVersions (6)Used By (20)

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

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

Version 1.5.2

Adaptation for Composer and PSR-0 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.

Install
-------

[](#install)

composer.phar

```
"require": {
    "sunra/php-simple-html-dom-parser": "1.5.2"
    }
```

Usage
-----

[](#usage)

```
use Sunra\PhpSimple\HtmlDomParser;

...
$dom = HtmlDomParser::str_get_html( $str );
or
$dom = HtmlDomParser::file_get_html( $file_name );

$elems = $dom->find($elem_name);
...
```

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity71

Solid adoption and visibility

Community43

Growing community involvement

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 84.7% 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 ~324 days

Total

5

Last Release

3486d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b66ec3a106b163a290acec0bfcb2261fac0d31f7381ab8885905b699098b82c?d=identicon)[sunra](/maintainers/sunra)

---

Top Contributors

[![sunra](https://avatars.githubusercontent.com/u/635370?v=4)](https://github.com/sunra "sunra (50 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)")[![shtse8](https://avatars.githubusercontent.com/u/8020099?v=4)](https://github.com/shtse8 "shtse8 (1 commits)")[![mryanb](https://avatars.githubusercontent.com/u/3656391?v=4)](https://github.com/mryanb "mryanb (1 commits)")[![daigo75](https://avatars.githubusercontent.com/u/292434?v=4)](https://github.com/daigo75 "daigo75 (1 commits)")

---

Tags

parserhtmldom

### Embed Badge

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

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

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k260.4M292](/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.5k8.1M127](/packages/paquettg-php-html-parser)[simplehtmldom/simplehtmldom

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

1931.3M15](/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.

1512.0M10](/packages/scotteh-php-dom-wrapper)[oscarotero/html-parser

Parse html strings to DOMDocument

165.4M1](/packages/oscarotero-html-parser)[ressio/pharse

Fastest PHP HTML Parser

8582.2k](/packages/ressio-pharse)

PHPackages © 2026

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