PHPackages                             zozlak/query-part - 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. [Database &amp; ORM](/categories/database)
4. /
5. zozlak/query-part

ActiveLibrary[Database &amp; ORM](/categories/database)

zozlak/query-part
=================

Container class for an SQL query and its parameters

2.2.0(2y ago)012.3k↓52.2%4MITPHPPHP &gt;=8.0

Since Apr 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/zozlak/queryPart)[ Packagist](https://packagist.org/packages/zozlak/query-part)[ Docs](https://github.com/zozlak/queryPart)[ RSS](/packages/zozlak-query-part/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (4)

QueryPart
=========

[](#querypart)

A simple container for passing an SQL query along with its parameters (and optionally a list of columns).

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

[](#installation)

`composer require zozlak/query-part`

Usage
-----

[](#usage)

```
$qp = new zozlak\queryPart\QueryPart("SELECT foo FROM bar WHERE baz = ?", ['bazValue'], ['foo']);
print_r($qp);
echo $qp . "\n";
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~220 days

Recently: every ~270 days

Total

6

Last Release

785d ago

Major Versions

1.0.0 → 2.0.02021-05-17

PHP version history (3 changes)1.0.0PHP &gt;=7.1

2.1.1PHP &gt;=7.0

2.2.0PHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[kimai/kimai

Kimai - Time Tracking

4.7k8.7k1](/packages/kimai-kimai)[cycle/database

DBAL, schema introspection, migration and pagination

65746.2k48](/packages/cycle-database)[api-platform/metadata

API Resource-oriented metadata attributes and factories

244.5M182](/packages/api-platform-metadata)[symfony/ai-store

Low-level abstraction for storing and retrieving documents in a vector store.

21364.4k84](/packages/symfony-ai-store)[perplorm/perpl

Perpl is an improved and still maintained fork of Propel2, an open-source Object-Relational Mapping (ORM) for PHP.

239.4k](/packages/perplorm-perpl)

PHPackages © 2026

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