Zest

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