sunra/php-simple-html-dom-parser
A maintained PHP port of Simple HTML DOM for loading and manipulating HTML with jQuery-like CSS selectors. It provides an easy, forgiving API for scraping pages and extracting or editing elements, with Composer support for modern PHP versions.
simple_html_dom parser, not a Laravel-native component. It does not provide service providers, facades, configuration, dependency injection, or PSR-4-first design. It can be called from Laravel code, but it should be treated as a legacy utility behind an application-owned adapter rather than a platform dependency.symfony/dom-crawler plus css-selector satisfy the requirement? Can we isolate parsing behind an interface and replace it later? Who owns patching/forking if PHP compatibility breaks? What is the license and provenance risk given the unknown repository? What volume, document size, and latency targets must the parser meet?HtmlParser interface for parsing. Do not let controllers, models, or Blade views call HtmlDomParser statics directly.sunra/php-simple-html-dom-parser as a temporary implementation detail. Wrap it in an adapter such as LegacySimpleHtmlDomParser implementing an internal interface. Plan a replacement path to symfony/dom-crawler with symfony/css-selector, or to DOMDocument/DOMXPath where CSS selectors are unnecessary.How can I help you explore Laravel packages today?