PHPackages                             php-query/php-query - 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. php-query/php-query

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

php-query/php-query
===================

phpQuery is a PHP library that enables you to parse HTML and manipulate the DOM using jQuery-like syntax. This repository aims to create a PHP 8.x ready version derived from the original code available in the \[Google Code Archive\](https://code.google.com/archive/p/phpquery/).

2997↑21.1%1[1 issues](https://github.com/php-query/php-query/issues)PHP

Since Dec 7Pushed 2y agoCompare

[ Source](https://github.com/php-query/php-query)[ Packagist](https://packagist.org/packages/php-query/php-query)[ RSS](/packages/php-query-php-query/feed)WikiDiscussions release/ver.0.9.6 Synced 3w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

phpQuery
========

[](#phpquery)

phpQuery is a PHP library that enables you to parse HTML and manipulate the DOM using jQuery-like syntax. This repository aims to create a PHP 8.x ready version derived from the original code available in the [Google Code Archive](https://code.google.com/archive/p/phpquery/).

License
-------

[](#license)

This project is based on the original code released under the MIT License. See the [LICENSE](LICENSE) file for more details.

Contribution Guidelines
-----------------------

[](#contribution-guidelines)

We welcome and appreciate contributions from the community. If you'd like to contribute, please follow these guidelines:

- Fork the repository
- Create a new branch for your feature or bug fix
- Commit your changes and push your branch to your fork
- Open a pull request with a clear description of your changes

We appreciate bug reports, feature requests, and any other form of contribution. Your help makes this project better for everyone.

Installation
------------

[](#installation)

To use phpQuery in your project, you can install it via Composer:

```
composer require php-query/php-query
```

Usage
-----

[](#usage)

Here's a simple example of how you can use phpQuery in your PHP code:

```
// Include the Composer autoloader
require 'vendor/autoload.php';

// Create a new phpQuery object
$html = 'Hello, world!';
$doc = phpQuery::newDocument($html);

// Manipulate the DOM using jQuery-like syntax
$text = $doc['div p span']->text(); // Retrieve the text content
echo $text; // Output: world!
```

For more detailed documentation and examples, please refer to the [wiki](https://github.com/your-vendor-name/phpquery/wiki).

Get in Touch
------------

[](#get-in-touch)

If you have any questions, suggestions, or feedback, feel free to open an issue or reach out to us via email at .

---

**Note:** This repository is a community-driven effort to make phpQuery compatible with PHP 8.x. While we strive for compatibility and functionality, please be aware that this version may have ongoing developments and improvements.

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd780e310d5bc0ee836da56be711b1b5f5ffec3fe7bb367835409fe3d039906e?d=identicon)[kazuya-kuramoto](/maintainers/kazuya-kuramoto)

### Embed Badge

![Health badge](/badges/php-query-php-query/health.svg)

```
[![Health](https://phpackages.com/badges/php-query-php-query/health.svg)](https://phpackages.com/packages/php-query-php-query)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M41](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[json-mapper/laravel-package

The JsonMapper package for Laravel

25188.9k3](/packages/json-mapper-laravel-package)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

112.9k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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