PHPackages                             mynd/wpquery - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mynd/wpquery

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mynd/wpquery
============

A wrapper for easy and fluent WordPress Queries

v1.0.5-beta(4y ago)07[1 issues](https://github.com/t0ng4/wpquery/issues)PHPPHP &gt;=7.4

Since Mar 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/t0ng4/wpquery)[ Packagist](https://packagist.org/packages/mynd/wpquery)[ RSS](/packages/mynd-wpquery/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

wpquery
=======

[](#wpquery)

Wrapper around WP\_Query for crafting fluent and expressive queries

**INSTALLATION**

```
composer require mynd/wpquery

```

*in PHP:*

```
...
use MYND\WQP\Classes\Query;
...

```

**USAGE**

*Retrieve posts of type page and default limit, status, etc.*

```
$posts = Query::post()->ofType(['page'])->get();

```

*Retrieve posts with a meta\_value `test_value` between 1 and 5*

```
$posts = Query::post()->withAnyOfMeta( [Query::postmeta( 'test_value' )->between( 1, 5 )] )->get();

```

*Get posts of type `artwork` that are assigned to at least one of the taxonomies `color` with attributes (e.g. terms) `blue or red or green`**OR** the `size` taxonomy with sizes `s or m` **AND** have a meta\_key `test_value` with value between `1 and 5`*

```
$posts = Query::post()->ofType(['artwork'])
                      ->withAnyTaxonomy([ Query::taxonomy('color', ['blue','red','green']),
                                          Query::taxonomy('size', ['s','m']) ])
                      ->withAnyOfMeta( [ Query::postmeta( 'test_value' )->between( 1, 5 ) ] )
                      ->get();

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~5 days

Total

6

Last Release

1487d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e5621ca97fe1109e953d4b985077e135bdbd1e1bbe16035d0cc7c4bab522105?d=identicon)[mynd](/maintainers/mynd)

---

Top Contributors

[![t0ng4](https://avatars.githubusercontent.com/u/22175519?v=4)](https://github.com/t0ng4 "t0ng4 (9 commits)")

### Embed Badge

![Health badge](/badges/mynd-wpquery/health.svg)

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

###  Alternatives

[helicon/object-mapper

Simple object mapping.

191.2k](/packages/helicon-object-mapper)

PHPackages © 2026

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