PHPackages                             sirquy/simple-html-dom - 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. sirquy/simple-html-dom

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

sirquy/simple-html-dom
======================

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

0198PHP

Since Jan 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sirquy/simple-html-dom)[ Packagist](https://packagist.org/packages/sirquy/simple-html-dom)[ RSS](/packages/sirquy-simple-html-dom/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

simple-html-dom
===============

[](#simple-html-dom)

Version 1.0

Adaptation for Composer and PSR-0 of:

A HTML DOM parser written in PHP7.0+ let you manipulate HTML in a very easy way! Require PHP 7.0+. 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": {
    "sirquy/simple-html-dom": "1.0"
    }
```

Usage
-----

[](#usage)

```
use SirQuy\PhpSimple\HtmlDomParser;

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

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

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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/d4f3f7175674456ea66c5549e97dc2a33653d4aed8913be52cf522fd677ac8a8?d=identicon)[quynp](/maintainers/quynp)

### Embed Badge

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

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

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

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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