s9e/sweetdom
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.
php-dom or Symfony/Umlaut for broader adoption).For Executives: "Sweetdom lets us generate dynamic HTML templates server-side in PHP—think of it as ‘XSLT for Laravel’ without the complexity. This cuts dev time for features like personalized emails, reports, or CMS-driven pages by 30–50%, while keeping all logic on the backend. It’s a lightweight alternative to bloated frontend frameworks, reducing our reliance on JavaScript for templating. Ideal for projects where speed and server-side control matter most."
For Engineering:
*"Sweetdom provides a fluent, chainable API for DOM manipulation in PHP (e.g., $dom->find('div')->attr('class', 'active')), with built-in XSLT-like templating for transforming structured data into HTML. Key benefits:
How can I help you explore Laravel packages today?