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

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

asymptix/php-html-dom-parser
============================

Composer adaptation and wrapper for the Simple HTML DOM parser written on PHP5+ let you manipulate HTML in a very easy and fast way. It supports invalid HTML DOM and may find tags in HTML DOM with selectors just like jQuery.

v1.5.1(10y ago)23.1k1MITHTMLPHP &gt;=5.3.2

Since Jul 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dzarezenko/Asymptix-PHP-HTML-DOM-Parser)[ Packagist](https://packagist.org/packages/asymptix/php-html-dom-parser)[ RSS](/packages/asymptix-php-html-dom-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Asymptix PHP HTML DOM Parser
============================

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

[Composer](https://getcomposer.org/) adaptation and wrapper for the [Simple HTML DOM](http://simplehtmldom.sourceforge.net/) parser written on PHP5+ let you manipulate HTML in a very easy and fast way. It supports invalid HTML DOM and may find tags in HTML DOM with selectors just like jQuery.

### Composer installation

[](#composer-installation)

To install with [Composer](https://getcomposer.org/) simply create this `composer.json` file in your project root folder and run composer command `composer install`.

```
{
	"minimum-stability": "dev",
    "require": {
        "php": ">=5.3.2",
		"asymptix/php-html-dom-parser": "1.5.*"
    }
}
```

### Usage

[](#usage)

Here you can find a simple example how to use Parser to parse products from some shop web-site and then parse product details from product pages:

```
use Asymptix\HtmlDomParser\HtmlDomParser;

require_once('vendor/autoload.php');

$url = "http://www.some-shop.com/";
$html = new HtmlDomParser();
$html->loadUrl($url);
foreach ($html->find("a.product") as $productItem) {
    $productHtml = new HtmlDomParser();
    $productHtml->loadUrl($productItem->href);

    $productDetails = $productHtml->find("div#productDetails", 0);
    $productForm = $productHtml->find("div#productForm", 0);

    $product = new stdClass();

    if (is_object($productForm)) {
        $product->price = $productForm->find("div.price", 0)->plaintext;
    }

    unset($productHtml);
}
```

Copyright (c) 2012 S.C. Chen, John Schlick, Rus Carroll from the [Simple HTML DOM](http://simplehtmldom.sourceforge.net/) lib developers team.

Copyright (c) 2015 [Asymptix](http://www.asymptix.com).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Every ~0 days

Total

2

Last Release

3954d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1439e7d5ed79cd69ab317ff7ed60f1c3fb94f425e536cb9e4034026cf2b4496a?d=identicon)[dzarezenko](/maintainers/dzarezenko)

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

---

Top Contributors

[![dzarezenko](https://avatars.githubusercontent.com/u/148570?v=4)](https://github.com/dzarezenko "dzarezenko (20 commits)")

---

Tags

phpparserhtmldomasymptix

### Embed Badge

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

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

###  Alternatives

[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)[ressio/pharse

Fastest PHP HTML Parser

8478.4k](/packages/ressio-pharse)[oscarotero/html-parser

Parse html strings to DOMDocument

165.0M1](/packages/oscarotero-html-parser)[hexydec/htmldoc

A token based HTML document parser and minifier. Minify HTML documents including inline CSS, Javascript, and SVG's on the fly. Extract document text, attributes, and fragments. Full test suite.

2610.3k3](/packages/hexydec-htmldoc)

PHPackages © 2026

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