mushroomcloud/simple-html-dom-bundle
A Symfony bundle that integrates the Simple HTML DOM library, offering service configuration for parsing, traversing, and manipulating HTML documents in PHP. Handy for scraping, content extraction, and DOM-style edits in Symfony apps.
composer require mushroomcloud/simple-html-dom-bundle.simple-html-dom library directly, or only pull this package in for a Symfony application.MushroomCloud\SimpleHtmlDomBundle\MushroomCloudSimpleHtmlDomBundle and the config key mushroom_cloud_simple_html_dom. Those are the two entry points you will touch.str_get_html() / file_get_html() API from a small service class.martyrer/simple-html-dom-bundle, this is a breaking rename: update the composer requirement, namespace imports, bundle class reference, and the config key before anything else.MushroomCloudSimpleHtmlDomBundle in config/bundles.php, configure it under mushroom_cloud_simple_html_dom, then inject the parser service into your classes instead of calling the global helpers.simple-html-dom API inside a dedicated class (e.g. HtmlParser) registered in the container. Return typed DTOs/arrays rather than leaking simple_html_dom_node objects through your app.symfony/dom-crawler, symfony/css-selector, or another parser later without touching call sites.find('selector') calls over whole-document traversal, and free DOM objects ($dom->clear()) when processing batches.martyrer/simple-html-dom-bundle to mushroomcloud/simple-html-dom-bundle. Update the composer requirement, namespace (MushroomCloud\SimpleHtmlDomBundle), bundle class (MushroomCloudSimpleHtmlDomBundle), and config key (mushroom_cloud_simple_html_dom). Miss the config key and your Symfony config will be silently ignored.config/mushroom_cloud_simple_html_dom.php to appear in a Laravel app.simple_html_dom is memory-hungry and older; set memory_limit expectations and avoid parsing very large documents. For new Laravel work, symfony/dom-crawler is usually the better default.$dom->save() or $dom->outertext to inspect what the parser actually built.composer.json; teams migrating from martyrer/... should do the rename in one commit to avoid mixed old/new references.How can I help you explore Laravel packages today?