phpgt/cssxpath
Lightweight, dependency-free PHP library that translates CSS selectors into XPath queries, bringing querySelectorAll-style DOM selection to PHP. Works with HTML and, via htmlMode: false, case-sensitive XML attributes.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sunra/php-simple-html-dom-parser | 0.85 | 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. | 1,282 | — | 342 | — | 30 | 27.7 | 18.0 | — | 9 years ago |
|
| weglot/simplehtmldom | 0.85 | 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. | 0 | 0 | — | 101 | — | 0.3 | 27.7 | — | — | |
| masterminds/html5 | 0.84 | HTML5-PHP is a standards-compliant HTML5 parser and serializer written entirely in PHP. It includes both a DOM tree builder and an event-based SAX-like parser, supports PHP namespaces and Composer, interoperates with QueryPath, and requires PHP 7.4+. Stable and widely used in production. | 1,787 | 1,808 | 126 | 16M | 26 | 50.1 | 74.8 | NOASSERTION | 1 week ago | |
| tburry/pquery | 0.84 | pQuery is a jQuery-inspired PHP library for parsing and manipulating HTML. It offers CSS selector queries, chainable DOM traversal and modification, and a familiar API for scraping or transforming markup without fragile regex. | 133 | — | 26 | — | 8 | 3.9 | 3.0 | LGPL-2.1 | 10 years ago |
|
| simplehtmldom/simplehtmldom | 0.84 | simplehtmldom is a fast, flexible PHP HTML DOM parser that turns messy, invalid HTML into a traversable tree. Use jQuery-like selectors to find, extract, and manipulate elements, attributes, and text with minimal code. Lightweight, dependency-free, and ideal for scraping, templating, and document pr... | 189 | — | 55 | — | 0 | 3.0 | 0.8 | MIT | — | |
| electrolinux/phpquery | 0.84 | 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. | 164 | 199 | 63 | 74K | 0 | 2.8 | 36.7 | — | — | |
| symfony/dom-crawler | 0.84 | DomCrawler eases DOM navigation for HTML and XML documents, letting you query, filter, and extract content with CSS selectors and XPath. Part of the Symfony framework. | 4,024 | 4,101 | 125 | 12M | 0 | 56.7 | 56.5 | MIT | 2 days ago | |
| fluentdom/selectors-phpcss | 0.84 | fluentdom/selectors-phpcss adds CSS selector support to PHP DOM parsing, letting you query HTML/XML with familiar selectors instead of verbose XPath. Lightweight and easy to integrate, it simplifies scraping, testing, and DOM traversal in PHP projects. | 6 | — | 0 | — | 0 | 0.0 | — | MIT | 5 years ago |
|
| emanueleminotto/simple-html-dom | 0.83 | Simple HTML DOM parser for PHP. Provides a lightweight API to load HTML from strings/files/URLs, traverse and query elements, and extract text/attributes. Handy for scraping, data extraction, and quick HTML manipulation without a full browser. | 11 | 17 | 8 | 530 | 0 | 0.6 | 22.9 | — | 11 years ago | |
| zendframework/zend-dom | 0.83 | Zend\Dom provides tools for parsing and querying HTML and XML documents, including CSS selector support translated to XPath via Zend\Dom\Query. A legacy Zend Framework component for DOM inspection and extraction. | 29 | — | 14 | — | 4 | 0.8 | 0.8 | BSD-3-Clause | 7 years ago |
|
| symfony/css-selector | 0.83 | Converts CSS selectors to XPath expressions, letting you query HTML and XML documents with familiar CSS syntax. A port of Python's cssselect library, part of the Symfony framework. | 7,416 | 7,453 | 43 | 27M | 0 | 58.5 | 57.7 | MIT | 2 days ago | |
| devanoxltd/php-html-parser | 0.83 | Lightweight PHP HTML parser with jQuery-style CSS selectors. Load HTML from strings or files, handle imperfect markup, and traverse nodes (attributes, innerHtml, siblings). Ideal for quick web scraping and DOM extraction in PHP 7.2–7.4. | 0 | 0 | 0 | 28 | 0 | 0.9 | 20.2 | MIT | 1 year ago | |
| paquettg/php-html-parser | 0.83 | Fast, lightweight HTML parser for PHP that turns messy markup into a DOM-like tree. Crawl and scrape pages, query elements with CSS selectors, and extract text/attributes easily. Works with imperfect HTML and focuses on simple, fluent usage. | 2,395 | 2,446 | 467 | 126K | 54 | 43.7 | 49.2 | MIT | — | |
| 24hoursmedia/php-dom-manipulations | 0.83 | Lightweight PHP helpers for manipulating HTML DOM documents. Create, find, update, replace, and remove nodes and attributes with a simple API suited for scraping, templating, and HTML cleanup tasks in legacy or modern PHP projects. | 0 | 0 | 0 | 13 | 1 | 0.4 | 15.8 | MIT | 9 years ago | |
| querypath/querypath | 0.83 | QueryPath is a PHP library for HTML/XML manipulation with a jQuery-like API. It lets you parse, query, and modify documents using CSS selectors, supporting HTML5, XML, and database-backed content. | 815 | 832 | 112 | 37K | 56 | 24.1 | 44.7 | NOASSERTION | — | |
| carica/phpcss | 0.83 | carica/phpcss is a lightweight PHP library for parsing, manipulating, and rendering CSS. It turns stylesheets into an object model so you can inspect or modify rules and declarations, then output clean or optimized CSS for dynamic styles and build tools. | 72 | 74 | 11 | 1K | 3 | 1.4 | 17.3 | — | 5 years ago | |
| facebook/webdriver | 0.83 | Archived Selenium WebDriver bindings for PHP. Controls browsers via Selenium 2–4 using JsonWireProtocol and partial W3C WebDriver support. Install with Composer and connect to a running selenium-server. Use php-webdriver/php-webdriver for current updates. | 65 | 25 | 0 | 87K | 0 | 0.2 | 30.4 | Apache-2.0 | — | |
| phpgt/dom | 0.82 | A modern DOM API for PHP built on the native DOMDocument, giving you browser-style, standardised object-oriented DOM manipulation server-side. Treat HTML files as templates and ready-process pages for browsers, webservers and CDNs. | 124 | 126 | 29 | 293K | 2 | 30.2 | 54.2 | MIT | 1 month ago | |
| iloh/simple-html-dom-bundle | 0.82 | Symfony bundle integrating the simple-html-dom PHP library, exposing HTML parsing and DOM manipulation as a service. Parse, traverse, and edit HTML documents with a familiar API, simplifying scraping and document processing in Symfony applications. | 0 | 0 | 1 | 0 | 0 | 0.0 | — | MIT | — | |
| zendframework/zendxml | 0.82 | ZendXml provides secure XML scanning/loading for PHP to help prevent XXE and XML entity expansion (XEE) attacks. It disables external entity loading and rejects documents using ENTITY declarations, returning SimpleXMLElement or DOMDocument. Repository abandoned; moved to laminas/laminas-xml. | 29 | 30 | 12 | 28K | 0 | 0.9 | 28.9 | BSD-3-Clause | 7 years ago |
How can I help you explore Laravel packages today?