Registry / utility / zendframework-zend-dom

zendframework-zend-dom

JSON →
library2.7.2phppackagistunverified

Provides tools for working with DOM documents and structures

composer require zendframework/zend-dom
INSTALL
IMPORT
SIG · ZENDFRAMEWORK-ZEND
Z
zendframework-zend-dom
utilityphpv2.7.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Query
use Zend\Dom\Query;

Query DOM documents using CSS selectors

use Zend\Dom\Query; $dom = new Query($htmlContent); $results = $dom->execute('div.class-name'); foreach ($results as $node) { echo $node->nodeValue; }
Debug
Known issues
breakingThis package is part of the Zend Framework, which has been migrated to Laminas. Consider using laminas/laminas-dom instead.
fix
Replace zendframework/zend-dom with laminas/laminas-dom in your composer.json.
affects: >=2.0.0
Upgrade
Version history
2.7.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Resources
zendframework-zend-dom — pip install zendframework-zend-dom · libregistry