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 | 362 | 0 | 0.6 | 21.1 | — | 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,806 | 120 | 10M | 29 | 48.9 | 71.5 | NOASSERTION | 1 month 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 | 58 | 8 | 25K | 2 | 12.5 | 38.8 | MIT | 8 months 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 | 12 | 1 | 0.4 | 18.5 | MIT | 9 years 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 | — | |
| 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 | — | — | — | |
| sinnbeck/laravel-dom-assertions | 0.78 | Extra DOM assertion helpers for Laravel HTTP tests. Assert elements, text, forms, selects, and datalists with more precision than assertSee/SeeText. Works with Livewire and Blade views/components; includes quick existence checks and a method reference. | 106 | 107 | 11 | 15K | 0 | 31.1 | 35.0 | MIT | 2 weeks ago | |
| 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 | 188K | 5 | 4.5 | 26.9 | 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 | 111K | 41 | 12.0 | 35.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 | 25K | 9 | 2.3 | 27.9 | 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 | 24 | 0 | 2.5 | 19.6 | MIT | 11 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. | 84 | 84 | 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 | 147K | 0 | 1.5 | 27.0 | 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 | 76K | 0 | 4.2 | 55.3 | MIT | 2 years ago | |
| symfony/dom-crawler | 0.77 | 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 | |
| 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,169 | 11,331 | 1,836 | 7M | 498 | 88.5 | 71.7 | LGPL-2.1 | 2 weeks 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 | 46 | 5 | 27K | 4 | 14.4 | 42.2 | MIT | 6 months ago | |
| hamcrest/hamcrest-php | 0.73 | Official PHP port of Hamcrest matchers for expressive assertions in tests. Use MatcherAssert::assertThat() or convenient global functions (assertThat, equalTo, is, both/andAlso, either/orElse) to build readable, composable matchers with PHP-friendly typing. | 7,004 | 7,017 | 47 | 10M | 10 | 50.3 | 55.7 | NOASSERTION | 1 month ago | |
| zenstruck/browser | 0.71 | 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. | 226 | 226 | 26 | 93K | 34 | 39.0 | 57.3 | MIT | 2 months ago | |
| zenstruck/assert | 0.70 | 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. | 81 | 82 | 5 | 692K | 1 | 12.8 | 58.2 | MIT | 8 months ago |
How can I help you explore Laravel packages today?