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

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

quillstack/query-builder
========================

A simple query builder package, with separate Model and Relation classes.

1.0.2(5y ago)26MITPHPPHP ^7.4

Since Oct 26Pushed 5y agoCompare

[ Source](https://github.com/quillstack/query-builder)[ Packagist](https://packagist.org/packages/quillstack/query-builder)[ Docs](https://quillstack.com/query-builder)[ RSS](/packages/quillstack-query-builder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Quill Stack Query Builder
=========================

[](#quill-stack-query-builder)

[![Build Status](https://camo.githubusercontent.com/205ffe993c527197c6c4b8e54ac3297f0ca0a83be417f04fef2739ca9ab2e3d0/68747470733a2f2f7472617669732d63692e6f72672f7175696c6c737461636b2f71756572792d6275696c6465722e7376673f6272616e63683d6d61696e)](https://travis-ci.org/quillstack/query-builder)[![Quality Gate Status](https://camo.githubusercontent.com/0a6a086a229c879b33ca001833e611b97b595bd71098175352f8d00c355d8756/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d7175696c6c737461636b5f71756572792d6275696c646572266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=quillstack_query-builder)[![Downloads](https://camo.githubusercontent.com/49b6f3b9aaa3744b6312e36a748e050bf16d981966bdf932296aa3f0de027e6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7175696c6c737461636b2f71756572792d6275696c6465722e737667)](https://packagist.org/packages/quillstack/query-builder)[![StyleCI](https://camo.githubusercontent.com/649168c4fbd372b996b2f1e55f85f00e0c20f4a62e37cd62ce42f749cee1c1dc/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3330333531323430382f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/303512408?branch=main)[![CodeFactor](https://camo.githubusercontent.com/7bc69d927507a100f2c09442c6d747dfdbf8b40b7c52f8b1bd852cbbfd4b4c58/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f7175696c6c737461636b2f71756572792d6275696c6465722f6261646765)](https://www.codefactor.io/repository/github/quillstack/query-builder)[![Maintainability Rating](https://camo.githubusercontent.com/d80f7a48c3ae6194740ed5f860517a8942287c6fa824a4be305577d08ae9bd6f/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d7175696c6c737461636b5f71756572792d6275696c646572266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=quillstack_query-builder)[![Lines of Code](https://camo.githubusercontent.com/36d633798533026982c4a780a89104c0ec0241391d8a68f95842f32392cd0ee3/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d7175696c6c737461636b5f71756572792d6275696c646572266d65747269633d6e636c6f63)](https://sonarcloud.io/dashboard?id=quillstack_query-builder)[![Coverage](https://camo.githubusercontent.com/841b30581d2c7676fb1e40c798e3b9f4829eda8d91a1b3cea0b16ec06d92dc7d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d7175696c6c737461636b5f71756572792d6275696c646572266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=quillstack_query-builder)[![Packagist PHP Version Support](https://camo.githubusercontent.com/c653cd4aafc862da81201b9ce3123ee9418be53d563df7980d0130a1d7af1c9f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7175696c6c737461636b2f71756572792d6275696c646572)](https://camo.githubusercontent.com/c653cd4aafc862da81201b9ce3123ee9418be53d563df7980d0130a1d7af1c9f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7175696c6c737461636b2f71756572792d6275696c646572)[![Packagist License](https://camo.githubusercontent.com/9413e2929d90d786e4c0b7fbbd70c63c9d9260015e05d3ae04ebc33077977fc9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7175696c6c737461636b2f71756572792d6275696c646572)](https://camo.githubusercontent.com/9413e2929d90d786e4c0b7fbbd70c63c9d9260015e05d3ae04ebc33077977fc9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7175696c6c737461636b2f71756572792d6275696c646572)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/13c59484366081c91b5cba7e23cf2afc216fe14ea5dac521dc3561f80e6cf412/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7175696c6c737461636b2f71756572792d6275696c6465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/quillstack/query-builder/?branch=main)

A simple query builder package, with separate Model and Relation classes.

### Unit tests

[](#unit-tests)

Run tests using a command:

```
phpdbg -qrr vendor/bin/phpunit

```

Check the tests coverage:

```
phpdbg -qrr vendor/bin/phpunit --coverage-html coverage tests

```

Quill Stack
-----------

[](#quill-stack)

If you want to know more about other solutions, visit the website:

[![The Quill Stack](https://camo.githubusercontent.com/8a34a52c82b417b93a85f64b06811e1b0d2523beef9778f0d749de5956b71fcf/687474703a2f2f7175696c6c737461636b2e636f6d2f7175696c6c737461636b2e706e67)](https://quillstack.com/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Total

3

Last Release

2026d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fa2ce7331aba0b089a6397b0f2304a912963d7bd6b2fdda457864abdfd810ec?d=identicon)[radek-ziemniewicz](/maintainers/radek-ziemniewicz)

---

Top Contributors

[![radek-ziemniewicz](https://avatars.githubusercontent.com/u/44390595?v=4)](https://github.com/radek-ziemniewicz "radek-ziemniewicz (10 commits)")

---

Tags

databasemodelphpphp7queryquery-buildersqlphpdatabasesqlmodelqueryquery builderPHP7

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k5.5M69](/packages/ifsnop-mysqldump-php)[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[opis/database

A database abstraction layer over PDO, that provides a powerful and intuitive query builder, bundled with an easy to use schema builder

10184.2k3](/packages/opis-database)[bentools/where

PHP7.1 Fluent, immutable SQL query builder. Connectionless, framework-agnostic, no dependency.

125.2k2](/packages/bentools-where)

PHPackages © 2026

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