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

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

futuretek/advanced-html-dom
===========================

Advanced html dom yii integration

1.3.0(1y ago)03.1k↑27.6%1MITPHPPHP &gt;=8.0.0

Since Oct 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/futuretek-solutions-ltd/yii2-ext-advanced-html-dom)[ Packagist](https://packagist.org/packages/futuretek/advanced-html-dom)[ Docs](https://www.futuretek.cz/)[ RSS](/packages/futuretek-advanced-html-dom/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (7)Used By (1)

AdvancedHtmlDom
===============

[](#advancedhtmldom)

The goal of this project is to be a DOM-based drop-in replacement for PHP's simple html dom library.

How To Use
----------

[](#how-to-use)

The same way as simple. If you use file/str\_get\_html then you don't need to change anything. If you are instantiating with `new simple_html_dom()` then you will need to change that to `new AdvancedHtmlDom()`

What's Different
----------------

[](#whats-different)

Mostly just formatting (spaces) in the html. This is added by DOM and there's no way around it. Some non-standard selectors have been dropped but many more standard ones have been added. For example: `img[src!=foo]` was removed because it's not a valid selector. Added are things like `a + b` and `a ~ b` or even `a.foo:not(.bar)`

What's Better
-------------

[](#whats-better)

- 10x-20x Performance increase
- Reduced memory requirement
- Support for many more css selectors

Features
--------

[](#features)

- Supports full set of css pseudo selectors plus many jquery extras: :not, :has, :contains, :gt, :lt, :eq
- Use with css or xpath: $doc-&gt;find('h3 a'), $doc-&gt;find('//h3//a')
- Jquery-style functions replace, wrap, unwrap, before after
- Nodeset math: $doc-&gt;find('a')-&gt;minus($doc-&gt;find('.skip\_me'))
- Lots more features that haven't been documented yet.

Changelog
---------

[](#changelog)

- Added changelog
- Generated doc
- Code revision - again it is faster (f.e. " to ')

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~577 days

Recently: every ~717 days

Total

6

Last Release

645d ago

PHP version history (3 changes)1.0.0PHP &gt;=5.5.0

1.2.0PHP &gt;=7.4.0

1.3.0PHP &gt;=8.0.0

### Community

Maintainers

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

---

Top Contributors

[![pguardiario](https://avatars.githubusercontent.com/u/58795222?v=4)](https://github.com/pguardiario "pguardiario (8 commits)")[![lukascernydis](https://avatars.githubusercontent.com/u/3111717?v=4)](https://github.com/lukascernydis "lukascernydis (6 commits)")[![petrleocompel](https://avatars.githubusercontent.com/u/9423543?v=4)](https://github.com/petrleocompel "petrleocompel (3 commits)")[![jhuebner](https://avatars.githubusercontent.com/u/734277?v=4)](https://github.com/jhuebner "jhuebner (2 commits)")

---

Tags

libraryhtml dom

### Embed Badge

![Health badge](/badges/futuretek-advanced-html-dom/health.svg)

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

###  Alternatives

[league/iso3166

ISO 3166-1 PHP Library

69938.4M141](/packages/league-iso3166)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

347.8M3](/packages/dekor-php-array-table)

PHPackages © 2026

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