weglot/simplehtmldom
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.
:nth-child beyond basic XPath).str_get_html()) or Blade components suffice.For Executives: "This package lets us quickly extract data from HTML pages—like competitor pricing or news sources—without overhauling our stack. It’s a lightweight, low-risk way to validate features before investing in heavier tools. Think of it as a ‘scraping Swiss Army knife’ for PHP: fast to implement, minimal overhead, and perfect for MVPs or niche integrations."
For Engineering: *"SimpleHTMLDOM is a drop-in parser for static HTML, ideal for:
For Developers:
*"Add this to composer.json:
composer require weglot/simplehtmldom
Then parse HTML like this:
$html = str_get_html('<html>...</html>');
$title = $html->find('title', 0)->plaintext; // Extract first <title> tag
Pro tip: Use with Guzzle for HTTP requests to build a full scraper in <30 lines. Avoid for dynamic pages—use Puppeteer instead."*
How can I help you explore Laravel packages today?