Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
QueryPath is a PHP library for manipulating XML and HTML. It is designed to work not only with local files, but also with web services and database resources.
PHP Shell

This branch is 297 commits behind technosophos:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
examples
patches
phar
src
test
tutorials
.gitignore
API
COPYING-LGPL.txt
COPYING-MIT.txt
CREDITS
INSTALL
LGPL-2.1.txt
README.md
RELEASE
build.xml
config.doxy
package.xml
package_compatible.xml
pear-summary.txt

README.md

QueryPath: Find your way.

Authors: Matt Butcher (lead), Emily Brand, and others

Website | API Docs | VCS and Issue Tracking | Support List | Developer List | Pear channel |

This package is licensed under the GNU LGPL 2.1 (COPYING-LGPL.txt) or, at your choice, an MIT-style license (COPYING-MIT.txt). The licenses should have been distributed with this library.

Installing QueryPath

The following packages of QueryPath are available:

  • PEAR package (pear install querypath/QueryPath): Installs the library and documentation.
  • Phar (QueryPath-VERSION.phar): This is a Phar package which can be used as-is. Its size has been minimized by stripping comments. It is designed for direct inclusion in PHP 5.3 applications.
  • Minimal (QueryPath-VERSION-minimal.tgz): This contains only the QueryPath library, with no documentation or additional build environment. It is designed for production systems.
  • Full (QueryPath-VERSION.tgz): This contains QueryPath, its unit tests, its documentation, examples, and all supporting material. If you are starting with QueryPath, this might be the best package.
  • Docs (QueryPath-VERSION-docs.tgz): This package contains only the documentation for QueryPath. Generally, this is useful to install as a complement to the minimal package.
  • Git repository clone: You can always clone this repository and work from that code.

If in doubt, you probably want the PEAR version or the Full package.

$ pear channel-discover pear.querypath.org
$ pear install querypath/QueryPath

To use QueryPath as a standard PHP library, simply put it somewhere PHP can see it and include QueryPath/QueryPath.php (that's in src/ in the full distro).

To use QueryPath as a phar package, put the phar somewhere where PHP can see it and include QueryPath.phar.

To use QueryPath as a PEAR package (assuming to have already installed it with PEAR), include QueryPath/QueryPath.php.

From there, the main functions you will want to use are qp() and htmlqp(). Start with the API docs.

Something went wrong with that request. Please try again.