PHPackages                             jeffmilanes/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jeffmilanes/php-html-dom-parser

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

jeffmilanes/php-html-dom-parser
===============================

Composer adaptation for: A simple PHP HTML DOM parser written in PHP5+, supports invalid HTML, and provides a very easy way to find, extract and modify the HTML elements of the dom. jquery like syntax allow sophisticated finding methods for locating the elements you care about.

03PHP

Since Jan 26Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHP HTML DOM PARSER
===================

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

Version 1.9.1 PHP 7.3 compatible

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 require jeffmilanes/php-html-dom-parser
```

Usage
-----

[](#usage)

```
use jeffmilanes\PhpSimpleHtmlDomParser\HtmlDomParser;

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

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f1c4bbb230acccd2cbd42ab5528f720fb59d45bf125ecf2175382e1ca4e6b36?d=identicon)[jeffmilanes](/maintainers/jeffmilanes)

---

Top Contributors

[![jeffmilanes](https://avatars.githubusercontent.com/u/2756849?v=4)](https://github.com/jeffmilanes "jeffmilanes (12 commits)")

### Embed Badge

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

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

###  Alternatives

[mtgsdk/mtgsdk

Magic: The Gathering SDK for php

498.0k](/packages/mtgsdk-mtgsdk)[zerkalica/millwright-menu-bundle

Config abstraction for knp menu bundle

234.1k3](/packages/zerkalica-millwright-menu-bundle)[tuandm/geoip2

Extended MaxMind GeoIP2 PHP API

108.5k](/packages/tuandm-geoip2)

PHPackages © 2026

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