# pQuery [](https://travis-ci.org/tburry/pquery) [](https://scrutinizer-ci.com/g/tburry/pquery/) [](https://packagist.org/packages/tburry/pquery) pQuery is a jQuery like html dom parser written in php. It is a fork of the [ganon dom parser](https://code.google.com/p/ganon/). ## Basic usage To get started using pQuery do the following. 1. Require the pQuery library into your project using [composer](http://getcomposer.org/doc/01-basic-usage.md#the-require-key). 2. Parse a snippet of html using `pQuery::parseStr()` or `pQuery::parseFile()` to return a document object model (DOM). 3. Run jQuery like functions on the DOM. ## Example The following example parses an html string and does some manipulation on it. ```php $html = '