paquettg/php-html-parser
Fast, lightweight HTML parser for PHP that turns messy markup into a DOM-like tree. Crawl and scrape pages, query elements with CSS selectors, and extract text/attributes easily. Works with imperfect HTML and focuses on simple, fluent usage.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| weglot/simplehtmldom | 0.87 | Fork/packaged Simple HTML DOM for PHP via Composer. Provides an easy, jQuery-like API to parse, traverse, and manipulate HTML from strings or URLs, useful for scraping, testing, or quick DOM queries without heavy dependencies. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| deepslam/content-parser | 0.86 | Laravel 5 package to extract a web page’s main content and title using automatic algorithms. Supports Graby (default) and Mercury API parsers, with an extensible architecture and optional HTML cleanup (remove CSS/style attrs, strip tags) for clean output. | 3 | 3 | 1 | 0 | 1 | 2.2 | — | — | 9 years ago | |
| emanueleminotto/simple-html-dom | 0.86 | Simple HTML DOM parser for PHP. Provides a lightweight API to load HTML from strings/files/URLs, traverse and query elements, and extract text/attributes. Handy for scraping, data extraction, and quick HTML manipulation without a full browser. | 10 | 17 | 8 | 362 | 0 | 0.6 | 21.1 | — | 10 years ago | |
| symfony/dom-crawler | 0.86 | Symfony DomCrawler makes it easy to parse and navigate HTML/XML using a fluent, CSS/XPath-friendly API. Ideal for scraping, testing responses, and extracting data from markup, with smooth integration across the Symfony ecosystem. | 4,031 | 4,108 | 125 | 7M | 0 | 53.8 | 52.2 | MIT | 1 month ago | |
| devanoxltd/php-html-parser | 0.84 | Lightweight PHP HTML parser with jQuery-style CSS selectors. Load HTML from strings or files, handle imperfect markup, and traverse nodes (attributes, innerHtml, siblings). Ideal for quick web scraping and DOM extraction in PHP 7.2–7.4. | 0 | 0 | 0 | 24 | 0 | 2.5 | 19.6 | MIT | 11 months ago | |
| masterminds/html5 | 0.84 | Standards-compliant HTML5 parser and serializer for PHP. Provides SAX-like event parsing, DOM tree building, namespace support, Composer install, and interoperability with QueryPath. Stable and widely used in production. | 1,781 | 1,804 | 120 | 9M | 29 | 48.9 | 71.5 | NOASSERTION | 1 month ago | |
| 24hoursmedia/php-dom-manipulations | 0.84 | Lightweight PHP helpers for manipulating HTML DOM documents. Create, find, update, replace, and remove nodes and attributes with a simple API suited for scraping, templating, and HTML cleanup tasks in legacy or modern PHP projects. | 0 | 0 | 0 | 21 | 1 | 0.4 | 18.5 | MIT | 9 years ago | |
| j0k3r/php-readability | 0.84 | Extracts the main article content and title from messy web pages in PHP. Improved fork of php-readability with tests, namespacing, and optional HTML cleanup via Tidy (or libxml). Supports PSR-3 logging for debugging. | 184 | 190 | 38 | 39K | 5 | 32.0 | 40.1 | Apache-2.0 | 3 weeks ago | |
| zendframework/zendxml | 0.83 | ZendXml provides secure XML scanning/loading for PHP to help prevent XXE and XML entity expansion (XEE) attacks. It disables external entity loading and rejects documents using ENTITY declarations, returning SimpleXMLElement or DOMDocument. Repository abandoned; moved to laminas/laminas-xml. | 29 | 30 | 11 | 22K | 0 | 0.8 | 28.0 | BSD-3-Clause | 7 years ago | |
| s9e/sweetdom | 0.82 | SweetDOM is a lightweight PHP library for fast DOM parsing and manipulation. It offers a simple, jQuery-like API to find, traverse, and edit HTML/XML documents, making common scraping and transformation tasks easier without heavy dependencies. | 0 | 3 | — | 76K | — | 4.2 | 55.3 | — | — | |
| theseer/fdomdocument | 0.81 | Archived PHP library extending DOMDocument to throw exceptions instead of warnings/notices, plus handy shortcuts like XPath query helpers and appendElement variants. Drop-in replacement for DOM with libxml support; works with PHP 5.3.3–8.1 (v1.6.7). | 247 | 256 | 17 | 147K | 0 | 1.5 | 27.0 | NOASSERTION | 4 years ago | |
| zenstruck/dom | 0.80 | Zenstruck DOM is a tiny PHP/Laravel-friendly library for working with HTML/XML DOM. It offers a simple, fluent API to query, traverse, and manipulate nodes, making scraping, testing, and HTML transformations easier than using raw DOMDocument/DOMXPath. | 5 | 5 | 3 | 649 | 0 | 0.4 | 29.9 | MIT | — | |
| dompdf/dompdf | 0.80 | Dompdf is a PHP HTML-to-PDF converter with a CSS 2.1-focused rendering engine. Supports external stylesheets, complex tables, common image formats, basic SVG, and runs without external PDF libraries. Requires PHP 7.1+ and DOM/MBString. | 11,167 | 11,331 | 1,835 | 7M | 498 | 88.5 | 71.7 | LGPL-2.1 | 2 weeks ago | |
| html2text/html2text | 0.79 | — | 590 | 612 | 177 | 845K | 15 | 17.3 | 49.6 | — | 1 year ago | |
| nikic/php-parser | 0.75 | Parse PHP code into an Abstract Syntax Tree (AST) for static analysis, manipulation, and code generation. Supports PHP 5.x to 8.4, handles errors gracefully, and preserves formatting during AST-to-code conversion. Easily traverse, modify, and convert ASTs back to PHP, with JSON serialization support... | 17,450 | 17,523 | 1,131 | 17M | 49 | 84.5 | 74.6 | BSD-3-Clause | 1 month ago |
How can I help you explore Laravel packages today?