PHPackages                             satisfactory-clips-archive/querypath - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. satisfactory-clips-archive/querypath

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

satisfactory-clips-archive/querypath
====================================

HTML/XML querying (CSS 4 or XPath) and processing (like jQuery)

v1.0.1(4y ago)0538MITPHPPHP ^8.1

Since Dec 25Pushed 4y agoCompare

[ Source](https://github.com/Satisfactory-Clips-Archive/querypath)[ Packagist](https://packagist.org/packages/satisfactory-clips-archive/querypath)[ Docs](https://github.com/satisfactory-clips-archive/querypath)[ GitHub Sponsors](https://github.com/SignpostMarv)[ RSS](/packages/satisfactory-clips-archive-querypath/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (5)Used By (0)

QueryPath: Find the better way
==============================

[](#querypath-find-the-better-way)

This package is based on [querypath/querypath](https://github.com/technosophos/querypath), and [arthurkushman/query-path](https://github.com/arthurkushman/querypath)

This package is licensed under an MIT license (COPYING-MIT.txt).

At A Glance
-----------

[](#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](https://github.com/Masterminds/html5-php).

### Why this lib was forked and recoded

[](#why-this-lib-was-forked-and-recoded)

- Incompatible with php 8.1

### Installation

[](#installation)

```
composer require satisfactory-clips-archive/querypath

```

### Gettings Started

[](#gettings-started)

Assuming you have successfully installed QueryPath via Composer, you can parse documents like this:

```
// HTML5 (new)
$qp = html5qp("path/to/file.html");

// Legacy HTML via libxml
$qp = htmlqp("path/to/file.html");

// XML or XHTML
$qp = qp("path/to/file.html");

// All of the above can take string markup instead of a file name:
$qp = qp("")

```

But the real power comes from chaining. Check out the example below.

### Example Usage

[](#example-usage)

Say we have a document like this:

```

    onetwothree

    fourfivesix

```

And say that the above is stored in the variable `$xml`. Now we can use QueryPath like this:

```

  *APPLE*
  *ORANGE*

```

### formatAttr()

[](#formatattr)

```
\QueryPath\DOMQuery formatAttr(string $name, callable $callback [, mixed $args [, $... ]])
```

A quick example:

```

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

3

Last Release

1594d ago

Major Versions

v0.1.0 → v1.0.02022-01-01

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.0,&lt;8.1

v1.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0f33136c4ea6a06111de3b716c6d06cb748df79c7a8114c498af665f9d8017a?d=identicon)[SignpostMarv](/maintainers/SignpostMarv)

---

Top Contributors

[![technosophos](https://avatars.githubusercontent.com/u/89193?v=4)](https://github.com/technosophos "technosophos (356 commits)")[![SignpostMarv](https://avatars.githubusercontent.com/u/304403?v=4)](https://github.com/SignpostMarv "SignpostMarv (100 commits)")[![arthurkushman](https://avatars.githubusercontent.com/u/2669610?v=4)](https://github.com/arthurkushman "arthurkushman (40 commits)")[![eabrand](https://avatars.githubusercontent.com/u/295040?v=4)](https://github.com/eabrand "eabrand (16 commits)")[![noisan](https://avatars.githubusercontent.com/u/5478214?v=4)](https://github.com/noisan "noisan (6 commits)")[![TomorrowToday](https://avatars.githubusercontent.com/u/885108?v=4)](https://github.com/TomorrowToday "TomorrowToday (6 commits)")[![sandeepshetty](https://avatars.githubusercontent.com/u/20508?v=4)](https://github.com/sandeepshetty "sandeepshetty (3 commits)")[![hakre](https://avatars.githubusercontent.com/u/378849?v=4)](https://github.com/hakre "hakre (3 commits)")[![GDmac](https://avatars.githubusercontent.com/u/156334?v=4)](https://github.com/GDmac "GDmac (2 commits)")[![fiveminuteargument](https://avatars.githubusercontent.com/u/120135?v=4)](https://github.com/fiveminuteargument "fiveminuteargument (1 commits)")[![Faryshta](https://avatars.githubusercontent.com/u/2029247?v=4)](https://github.com/Faryshta "Faryshta (1 commits)")[![danielbachhuber](https://avatars.githubusercontent.com/u/36432?v=4)](https://github.com/danielbachhuber "danielbachhuber (1 commits)")[![Zemistr](https://avatars.githubusercontent.com/u/2613208?v=4)](https://github.com/Zemistr "Zemistr (1 commits)")[![yaph](https://avatars.githubusercontent.com/u/60051?v=4)](https://github.com/yaph "yaph (1 commits)")[![zackkatz](https://avatars.githubusercontent.com/u/870979?v=4)](https://github.com/zackkatz "zackkatz (1 commits)")[![mattfarina](https://avatars.githubusercontent.com/u/62991?v=4)](https://github.com/mattfarina "mattfarina (1 commits)")

---

Tags

xmlcsshtmljqueryxsltphp8

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/satisfactory-clips-archive-querypath/health.svg)

```
[![Health](https://phpackages.com/badges/satisfactory-clips-archive-querypath/health.svg)](https://phpackages.com/packages/satisfactory-clips-archive-querypath)
```

###  Alternatives

[querypath/querypath

HTML/XML querying and processing (like jQuery)

8197.0M27](/packages/querypath-querypath)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[gravitypdf/querypath

PHP library for HTML(5)/XML querying (CSS 4 or XPath) and processing (like jQuery) with PHP 7.1 to 8.5 support

281.2M1](/packages/gravitypdf-querypath)[rct567/dom-query

DomQuery is a PHP library that allows easy 'jQuery like' DOM traversing and manipulation

134261.0k4](/packages/rct567-dom-query)[hexydec/htmldoc

A token based HTML document parser and minifier. Minify HTML documents including inline CSS, Javascript, and SVG's on the fly. Extract document text, attributes, and fragments. Full test suite.

2610.3k3](/packages/hexydec-htmldoc)[machy8/xhtml-formatter

Simple, lightweight, customizable (X)HTML and XML formatter / beautifier.

13181.6k7](/packages/machy8-xhtml-formatter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
