Download the PHP package mistralys/simple_html_dom without Composer
On this page you can find all versions of the php package mistralys/simple_html_dom. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package simple_html_dom
PHP Simple HTML DOM Parser
A fast, forgiving HTML parser for PHP 8.4+ that lets you find and manipulate HTML elements using CSS-like selectors — no ext-dom required.
✨ Features
- CSS-like selectors — find elements by tag,
#id,.class,[attribute], and more - Two APIs, one engine — use procedural functions (
str_get_html,file_get_html) or the namespaced OOP interface (Parser,Node) - Forgiving parser — handles messy, real-world HTML without choking
- Read and modify — change attributes, inner/outer HTML, and serialize back to string or file
- Tree traversal — navigate parents, children, and siblings
- Callbacks — hook into serialization with per-node callback functions
- Charset conversion — automatic detection and conversion via
ext-mbstring - Configurable — adjust max file size, encoding, and parser behavior at runtime
- Fully backward compatible — legacy
simple_html_domcode works without changes
📋 Requirements
- PHP 8.4+
ext-mbstring
🚀 Quick Start
Install via Composer:
Note: If the package is not available on Packagist, add the repository to your
composer.json:
Parse HTML and find elements:
Or use the procedural API:
📖 Learn More
| Resource | Description |
|---|---|
| Manual | Full documentation — 14 guides covering selectors, DOM traversal, modification, configuration, and more |
| Examples | 16 runnable PHP scripts organized by topic |
| Changelog | Version history and recent changes |
Development
📜 License
MIT
🔗 Origin
Fork of samacs/simple_html_dom, originally by S.C. Chen (SourceForge).
All versions of simple_html_dom with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
ext-mbstring Version *
ext-mbstring Version *
The package mistralys/simple_html_dom contains the following files
Loading the files please wait ...