PHPackages                             bscheshir/phpquery - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bscheshir/phpquery

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bscheshir/phpquery
==================

PHP5.3+ namespaced version of phpQuery with enhanced CSS support

0.9.8.1(9y ago)017.8k↑271.4%1[1 PRs](https://github.com/bscheshir/phpquery/pulls)MITPHPPHP &gt;=5.3.3

Since Mar 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bscheshir/phpquery)[ Packagist](https://packagist.org/packages/bscheshir/phpquery)[ Docs](http://code.google.com/p/phpquery/)[ RSS](/packages/bscheshir-phpquery/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

Revisiting PhpQuery
===================

[](#revisiting-phpquery)

[![Build Status](https://camo.githubusercontent.com/c51e2c17a0da9e6877e1bf76333c1077cbb7e706a9d16fc996d833a065e0e7ec/68747470733a2f2f7472617669732d63692e6f72672f776974746977732f70687071756572792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/wittiws/phpquery)

Basic usage of this fork
------------------------

[](#basic-usage-of-this-fork)

```
// This gives you the phpQuery object as normally used.
use PhpQuery\PhpQuery as phpQuery;

// This creates the pq() function in your namespace.
PhpQuery::use_function(__NAMESPACE__);

// This creates the pq() function in the global namespace.
PhpQuery::use_function();
```

About this fork
---------------

[](#about-this-fork)

This fork includes several modernizations:

-  (one commit: added WebBrowser-&gt;browserDownload)
-  (three commits)
-  (remove zend)

### github repos i've looked at:

[](#github-repos-ive-looked-at)

-
-
-
-
-
-  (include php-css-parser)
-

Manual
------

[](#manual)

- [Manual](wiki/README.md) imported from

Extracts from fmorrow README.md:
--------------------------------

[](#extracts-from-fmorrow-readmemd)

### Whats phpQuery?

[](#whats-phpquery)

To quote the phpQuery *(orignally concieved and developed by Tobiasz Cudnik, available on Google Code and Github)* project documentation:

> phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library.
>
> Library is written in PHP5 and provides additional Command Line Interface (CLI).

### Example usage

[](#example-usage)

(copied from )

Complete working example:

```
