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/).

2325↑147.9%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 1mo 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

15

—

LowBetter than 3% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity19

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

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M283](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M63](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M344](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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