Translate CSS selectors to XPath queries ======================================== A lightweight and dependency free CSS to XPath translator. This repository is used to bring modern DOM functionality like [`querySelectorAll()`][qsa] to PHP in the [PHP.Gt/Dom][gt-dom] project. *** Build status Code quality Code coverage Current version PHP.Gt/CssXPath documentation Example usage ------------- ```php use Gt\CssXPath\Translator; $html = << HTML; $document = new DOMDocument(); $document->loadHTML($html); $xpath = new DOMXPath($document); $inputElementList = $xpath->query(new Translator("form>label>input"); ``` [qsa]: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll [gt-dom]: https://www.php.gt/dom