zenstruck/dom
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| emanueleminotto/simple-html-dom | 0.81 | 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. | 11 | 17 | 8 | 290 | 0 | 0.6 | 19.4 | — | 10 years ago | |
| masterminds/html5 | 0.80 | 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,797 | 121 | 8M | 29 | 33.6 | 63.1 | NOASSERTION | 10 months ago | |
| zenstruck/console-test | 0.80 | Test your Symfony Console commands with ease. zenstruck/console-test provides a lightweight harness to run commands, feed input, capture output, and assert exit codes and messages—ideal for fast, reliable unit/integration tests without booting full apps. | 57 | 57 | 8 | 39K | 2 | 15.2 | 42.4 | MIT | 6 months ago | |
| paquettg/php-html-parser | 0.80 | 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,403 | 2,453 | 469 | 89K | 54 | 43.8 | 26.8 | MIT | — | |
| 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 | 78 | 1 | 0.4 | 26.2 | MIT | 9 years ago | |
| weglot/simplehtmldom | 0.79 | 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 | — | — | — | |
| zendframework/zend-stdlib | 0.78 | Zend\Stdlib provides general-purpose utility components for PHP, including array helpers, messaging utilities, string wrappers, and more. Note: this repository was abandoned on 2019-12-31 and moved to laminas/laminas-stdlib. | 377 | 398 | 70 | 220K | 5 | 4.5 | 27.6 | BSD-3-Clause | 7 years ago | |
| zendframework/zend-validator | 0.78 | Powerful validation library from Zend Framework for PHP apps. Provides a wide range of reusable validators, input filtering, and custom rule support with clear error messages. Integrates easily into forms and domain validation workflows. | 179 | 181 | 133 | 144K | 41 | 12.0 | 36.6 | BSD-3-Clause | 6 years ago | |
| zendframework/zend-console | 0.78 | Zend\Console provides a robust set of tools for building PHP command-line apps and scripts. It includes input parsing, argument and option handling, console adapters, and helpers for formatting output, making it easier to create interactive and portable CLI commands. | 47 | 50 | 30 | 36K | 9 | 2.3 | 29.4 | BSD-3-Clause | 7 years ago | |
| devanoxltd/php-html-parser | 0.78 | 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 | 1 | 0 | 5.3 | 4.3 | MIT | 9 months ago | |
| pear/console_getopt | 0.77 | PEAR Console_Getopt is a small PHP library for parsing command-line options and arguments. It supports GNU-style short and long flags, handles required/optional values, and provides help-friendly parsing for CLI scripts and tools. | 85 | 85 | 14 | 2M | 0 | 1.1 | 55.3 | BSD-2-Clause | 6 years ago | |
| theseer/fdomdocument | 0.77 | 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 | 156K | 0 | 1.5 | 27.4 | NOASSERTION | 4 years ago | |
| s9e/sweetdom | 0.77 | 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. | 3 | 3 | 1 | 52K | 0 | 4.2 | 55.3 | MIT | 2 years ago | |
| sinnbeck/laravel-dom-assertions | 0.77 | Add fluent, expressive DOM assertions to your Laravel test suite. Parse HTML responses and assert elements, attributes, text, and structure with readable APIs—making feature and browser-style tests clearer and less brittle. | 106 | 106 | 10 | 15K | 0 | 29.6 | 34.8 | MIT | 2 weeks ago | |
| symplify/symplify-kernel | 0.76 | Shared kernel and infrastructure for Symplify tools. Provides common console/app bootstrapping, configuration loading, service container wiring, and utilities to build consistent PHP CLI applications and packages on top of Symplify components. | 46 | 47 | 3 | 52K | 0 | 0.3 | 29.7 | MIT | — | |
| symfony/dom-crawler | 0.75 | Symfony DomCrawler makes it easy to navigate and query HTML/XML DOMs using CSS selectors and XPath. Extract links, forms, and text, filter nodes, and chain queries for robust scraping, testing, and content parsing in PHP. | 4,041 | 4,115 | 124 | 6M | 0 | 55.6 | 52.0 | MIT | 1 week ago | |
| dompdf/dompdf | 0.75 | 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,137 | 11,278 | 1,830 | 6M | 495 | 83.8 | 67.9 | LGPL-2.1 | 3 months ago | |
| zenstruck/browser | 0.74 | A Laravel-friendly browser testing toolkit built on Symfony BrowserKit and Panther. Easily crawl pages, click links, submit forms, assert on HTML, and drive real headless browsers—great for end-to-end tests and fluent, expressive UI assertions. | 227 | 227 | 25 | 106K | 34 | 41.9 | 58.7 | MIT | 1 week ago | |
| zenstruck/assert | 0.73 | Lightweight PHP assertion helpers for cleaner, safer code. zenstruck/assert provides expressive, fluent assertions and value validation with helpful exception messages, improving readability in libraries and Laravel apps without bringing a full testing framework. | 82 | 82 | 5 | 759K | 1 | 15.1 | 59.9 | MIT | 6 months ago | |
| zenstruck/mailer-test | 0.73 | Opinionated helpers to test emails sent with symfony/mailer. Use InteractsWithMailer in KernelTestCase/WebTestCase for fluent assertions like assertNoEmailSent, assertSentEmailCount, and inspect messages with TestEmail (subject, recipients, body, attachments). | 45 | 45 | 5 | 25K | 4 | 17.3 | 42.9 | MIT | 4 months ago |
How can I help you explore Laravel packages today?