electrolinux/phpquery
phpQuery is a server-side, jQuery-like PHP library for parsing and manipulating HTML/XML DOM. It provides CSS3 selectors, chainable traversal and manipulation methods, and a familiar API for scraping, templating, and document processing.
symfony/dom-crawler or accept a dependency on an unmaintained library we will eventually have to fork and own. Either way, "adopt phpQuery" is a maintenance commitment line item, not a footnote.artisan command, internal audience, run-once.Consider it when:
Look elsewhere when:
symfony/dom-crawler + symfony/css-selector, or a real browser via Dusk/Panther for JS-rendered pages.symfony/dom-crawler, voku/simple_html_dom, or RoachPHP for spider orchestration in Laravel.composer require — typosquatting on abandoned packages is a real supply-chain vector.Executives: This is a free, jQuery-style HTML parser we can wire into a Laravel service in an afternoon. It lets us validate a data-ingestion idea cheaply, before we staff it. The trade-off is unambiguous and the package states it itself: abandoned and known-buggy, so it is a prototyping tool, not a platform. Recommendation: timebox it to the spike, isolate it behind an internal interface, and pre-approve a swap to a maintained library if the feature graduates to production.
Engineering: Familiar CSS-selector API, Composer-installable, no exotic extensions beyond dom/libxml. Guardrails are non-negotiable: pin the exact version, run it inside a queued job with timeouts and a memory cap, never feed it unsanitized or third-party markup, and wrap it in a small adapter class so replacing it with symfony/dom-crawler is a one-file change. Add fixture-based tests at adoption time — realistically, we become the maintainer.
How can I help you explore Laravel packages today?