A fast, simple and reliable HTML document parser for PHP.

The original Simple HTML DOM Parser project was created by S.C. Chen, based on HTML Parser for PHP 4 by Jose Solorzano.

It is now being continued here by PHPCore aiming to make "composer" compatibility better and clean-up some code, introduce type-safety and generally keep the project up-to-date.

Parse any HTML document

PHP Simple HTML DOM Parser handles any HTML document, even ones that are considered invalid by the HTML specification.

Select elements using CSS selectors

PHP Simple HTML DOM Parser supports CSS style selectors to navigate the DOM, similar to jQuery.

Download

Contributing

License

PHP Simple HTML DOM Parser is Free Software licensed under the MIT License.