Download the PHP package gravitypdf/querypath without Composer
On this page you can find all versions of the php package gravitypdf/querypath. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gravitypdf/querypath
More information about gravitypdf/querypath
Files in gravitypdf/querypath
Package querypath
Short Description PHP library for HTML(5)/XML querying (CSS 4 or XPath) and processing (like jQuery) with PHP8.3 support
License MIT
Homepage https://github.com/gravitypdf/querypath
Informations about the package querypath
QueryPath: Find the better way
QueryPath is a jQuery-like library for working with XML and HTML(5) documents in PHP. It is stable software, with the original library garnering 4M+ downloads since first published in 2009.
This is a fork of a fork. The original library, and subsequent fork, are no longer being maintained. The aim of gravitypdf/querypath
is to ensure the library remains compatible with the latest version of PHP, and bug free. 🧑💻There is still a lot of legacy code to clean up + modernize, and any assistance given is appreciated.
If you are viewing this file on QueryPath GitHub repository homepage or on Packagist, please note that the default repository branch is
main
which can differ from the last stable release.
Installation
Basic Usage
To parse HTML or XML:
The real power of QueryPath comes from chaining methods together. This example will generate a valid HTML5 document and output to the browser:
You can find specific nodes, loop over the matches, and extract information about each element:
See the examples directory files for more usages.
Online Manual
The legacy QueryPath manual has been automatically generated from inline DocBlocks using phpDocumentor, and can be found at http://querypath.org.
⚠️ querypath.org is not built or maintained by Gravity PDF, and we have no access to manage or change the website. Help writing new documentation in the repo's Wiki is wanted.
General Troubleshooting
For general questions or troubleshooting please use Discussions.
You can also use the querypath tag at Stack Overflow, as the StackOverflow user base is more likely to answer you in a timely manner.
Contributing
Before submitting issues and pull requests please read CONTRIBUTING.md.
If opening a Pull Request ensure the linter and PHPUnit tests pass (and write a new test for the bug you are fixing):
- Lint:
composer run lint
- PHPUnit:
vendor/bin/phpunit
All versions of querypath with dependencies
masterminds/html5 Version ^2.0