Download the PHP package satisfactory-clips-archive/querypath without Composer
On this page you can find all versions of the php package satisfactory-clips-archive/querypath. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download satisfactory-clips-archive/querypath
More information about satisfactory-clips-archive/querypath
Files in satisfactory-clips-archive/querypath
Package querypath
Short Description HTML/XML querying (CSS 4 or XPath) and processing (like jQuery)
License MIT
Homepage https://github.com/satisfactory-clips-archive/querypath
Informations about the package querypath
QueryPath: Find the better way
This package is based on querypath/querypath, and arthurkushman/query-path
This package is licensed under an MIT license (COPYING-MIT.txt).
At A Glance
QueryPath is a jQuery-like library for working with XML and HTML documents in PHP. It now contains support for HTML5 via the HTML5-PHP project.
Why this lib was forked and recoded
- Incompatible with php 8.1
Installation
Gettings Started
Assuming you have successfully installed QueryPath via Composer, you can parse documents like this:
But the real power comes from chaining. Check out the example below.
Example Usage
Say we have a document like this:
And say that the above is stored in the variable $xml
. Now
we can use QueryPath like this:
(This example is in examples/at-a-glance.php
.)
With over 60 functions and robust support for chaining, you can accomplish sophisticated XML and HTML processing using QueryPath.
From there, the main functions you will want to use are qp()
(alias of QueryPath::with()
) and htmlqp()
(alias of
QueryPath::withHTML()
).
QueryPath Format Extension
format()
To add QueryPath as a library in your project, run composer require satisfactory-clips-archive/querypath
OUTPUT:
formatAttr()
A quick example:
OUTPUT:
All versions of querypath with dependencies
ext-ctype Version *
ext-dom Version *
ext-filter Version *
ext-libxml Version *
ext-mbstring Version *
ext-xsl Version *
masterminds/html5 Version ^2.7