kub-at/php-simple-html-dom-parser
A fast, lightweight PHP HTML DOM parser that lets you find and extract elements from HTML using jQuery-like selectors. Compatible with simple_html_dom, it makes scraping, parsing, and manipulating markup easy with minimal code.
str_get_html / file_get_html-style API, likely exposed as Kubat\PhpSimple\HtmlDomParser. Laravel does not need a service provider; wrap it behind an application-owned adapter.file_get_html for untrusted URLs. Fetch via Laravel’s HTTP client/Guzzle so SSRF controls, timeouts, redirects, TLS, and allowlists are enforceable. Do not treat parsed output as sanitized HTML.symfony/dom-crawler with masterminds/html5 acceptable?HtmlParser with a concrete SimpleHtmlDomParserAdapter. Keep package-specific calls out of controllers, models, and domain services. If the package fails validation, replace the adapter with Symfony DomCrawler/Masterminds HTML5 without changing callers.clear()/unset documents, and monitor duration, memory, and failure rate.How can I help you explore Laravel packages today?