s9e/sweetdom
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| weglot/simplehtmldom | 0.83 | 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 | — | — | — | |
| rhukster/dom-sanitizer | 0.83 | MIT-licensed PHP 7.3+ DOM/SVG/MathML sanitizer using DOMDocument and DOMPurify-based allowlists. Remove dangerous tags/attributes, strip namespaces and PHP/HTML/XML tags, and optionally compress output. Supports HTML, SVG, and MathML modes. | 11 | 11 | 4 | 169K | 0 | 18.9 | 62.6 | MIT | 3 months ago | |
| symfony/dom-crawler | 0.82 | 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 | |
| ajtis/xml-bundle | 0.82 | — | 0 | 0 | 0 | 2 | 0 | 9.9 | 7.1 | MIT | 6 months ago | |
| core23/dompdf-bundle | 0.81 | — | 56 | 54 | 12 | 142 | 6 | 15.1 | 9.5 | MIT | 8 months ago | |
| stepanets/kww-domstorlib-c | 0.81 | C library for a DOM-style storage layer (domstorlib-c), packaged for PHP/Laravel workflows. Provides low-level primitives for storing and retrieving structured data in a DOM-like format, aimed at embedding in other tools rather than end-user apps. | 1 | 2 | 1 | 0 | 0 | 0.6 | — | — | 8 years ago | |
| becklyn/html-builder | 0.80 | Lightweight PHP HTML builder for composing elements and attribute strings. Create HtmlElement nodes, render with escaping by default, support boolean/null/false attribute rules, and inject trusted raw HTML via SafeMarkup when needed. | 2 | 2 | 0 | 150 | 0 | 1.8 | 23.6 | BSD-3-Clause | 4 years ago | |
| emanueleminotto/simple-html-dom | 0.80 | 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 | |
| theseer/fdomdocument | 0.80 | 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 | |
| 24hoursmedia/php-dom-manipulations | 0.80 | 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 | |
| bicpi/html-converter | 0.80 | PHP library for converting HTML to plain text, ideal for generating text parts of HTML emails. Includes Simple (strip_tags), Lynx (best results, keeps links), Html2Text, and Chain converter to pick the first available backend. | 11 | 12 | 13 | 0 | 0 | 0.5 | — | MIT | — | |
| devanoxltd/php-html-parser | 0.80 | 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 | |
| paquettg/php-html-parser | 0.79 | 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. | 2,401 | 2,448 | 468 | 92K | 54 | 43.7 | 47.4 | MIT | — | |
| masterminds/html5 | 0.77 | 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 | |
| thenorthmemory/xml | 0.77 | Lightweight XML transformer for PHP: parse XML into arrays and build XML back from arrays. Supports repeated elements/lists, optional pretty printing, custom root nodes, and wrapping arrays to control tag output. Extracted from wechatpay-php for general use. | 9 | 9 | 0 | 22K | 0 | 0.9 | 46.3 | Apache-2.0 | 3 years ago | |
| zenstruck/dom | 0.76 | 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 | — | |
| simplesamlphp/xml-common | 0.76 | — | 4 | 4 | 8 | 157K | 1 | 22.1 | 64.9 | LGPL-2.1 | 3 weeks ago | |
| veewee/xml | 0.73 | Type-safe, declarative XML toolkit for PHP. Includes DOM helpers, safe error handling, memory-safe reader/writer, XML encode/decode, plus XSD and XSLT utilities. Spec-compliance ready for PHP 8.4+, with maintained v3 for older PHP. | 183 | 183 | 11 | 307K | 1 | 31.9 | 53.9 | MIT | 2 weeks ago | |
| dompdf/dompdf | 0.72 | 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 | |
| simonschaufi/pretty-xml | 0.70 | — | 22 | 22 | 9 | 62K | 0 | 2.8 | 47.4 | MIT | 1 year ago |
How can I help you explore Laravel packages today?