About

I wrote DomQuery while I was developing a personal XML/XSL-based framework a while ago. At the time jQuery was becoming quite popular. I thought it would great if there was an easy-to-use and implement library written in PHP that could do the same stuff using the DOMDocument and XPath classes.

I wrote the initial class about 2 years ago and just recently revisited it. There were quite a few things I thought could use some improving, so I dusted the thing off and gave it a few hours of my time. It was well worth the effort as the latest build offers a pretty extensive set of tools which make working with the DOM much easier in PHP.

In short, think of DomQuery as PHP's version of jQuery. The main difference is that instead of CSS selectors, you're using XPath expressions.

This library works with PHP 5.x and up

Recent Discussions

No discussions yet!