Zest.php is a pure PHP CSS selector library which is a port of the JavaScript zest.js library.

edit