PHPackages                             phuria/sql-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. phuria/sql-builder

Abandoned → [phuria/under-query](/?search=phuria%2Funder-query)Library[Database &amp; ORM](/categories/database)

phuria/sql-builder
==================

Lightweight PHP Query Builder primarily focused on building reusable SQL queries.

0.8.5(9y ago)5162[2 issues](https://github.com/phuria/under-query/issues)MITPHPPHP &gt;=5.6.0

Since Oct 1Pushed 9y ago2 watchersCompare

[ Source](https://github.com/phuria/under-query)[ Packagist](https://packagist.org/packages/phuria/sql-builder)[ Docs](https://github.com/phuria/under-query)[ RSS](/packages/phuria-sql-builder/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (5)Versions (20)Used By (0)

UnderQuery
==========

[](#underquery)

[![Build Status](https://camo.githubusercontent.com/524d5940c103a0a53ebee8206ca5610468d107437398a95a4ed0b02c6bafae71/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f7068757269612f756e6465722d71756572792e7376673f6d61784167653d33363030)](https://scrutinizer-ci.com/g/phuria/under-query/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f8a5eb5a2b689df9860961dd9ab8622790eeafbabec938ca18ee981327d4a037/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7068757269612f756e6465722d71756572792e7376673f6d61784167653d33363030)](https://scrutinizer-ci.com/g/phuria/under-query/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/8acf21cff4e8319c7a27cf087b4074136532de11c1d47062969296972b1ce9a1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7068757269612f756e6465722d71756572792e7376673f6d61784167653d33363030)](https://scrutinizer-ci.com/g/phuria/under-query/?branch=master)[![Packagist](https://camo.githubusercontent.com/f528e74c9d6c0d85311324d33a628524f2272c2947a873345f33694cb1da0b9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068757269612f756e6465722d71756572792e7376673f6d61784167653d33363030)](https://packagist.org/packages/phuria/under-query)![license](https://camo.githubusercontent.com/3077b8cdbec1594b7f1adcb903418f34bf0859d6f5ed418700bca0a449cdc240/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7068757269612f756e6465722d71756572792e7376673f6d61784167653d323539323030303f7374796c653d666c61742d737175617265)![php](https://camo.githubusercontent.com/b011724bbacca84759f526aae2da4c3917841c00ef84d154a1120865097d881f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e362d626c75652e7376673f6d61784167653d32353932303030)

UnderQuery is primarily focused on building reusable SQL queries. It use `doctrine\dbal`package for providing database connection. We provide you object-oriented inheritance behavior in database's tables. We have everything you need to create complex queries.

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

[](#installation)

```
composer require phuria/under-query

```

Documentation
-------------

[](#documentation)

The current version can be seen at [under-query.readthedocs.io](http://under-query.readthedocs.io/en/latest/).

Symfony integration
-------------------

[](#symfony-integration)

For applications based on Symfony framework we have integration bundle: [UnderQueryBundle](https://github.com/phuria/UnderQueryBundle).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99% 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 ~4 days

Total

19

Last Release

3431d ago

### Community

Maintainers

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

---

Top Contributors

[![phuria](https://avatars.githubusercontent.com/u/5156963?v=4)](https://github.com/phuria "phuria (294 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (3 commits)")

---

Tags

mysqlsqlquerybuilder

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phuria-sql-builder/health.svg)

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

###  Alternatives

[nilportugues/sql-query-builder

An elegant lightweight and efficient SQL QueryInterface BuilderInterface supporting bindings and complicated query generation.

425239.4k6](/packages/nilportugues-sql-query-builder)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[envms/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

925511.7k13](/packages/envms-fluentpdo)[atk4/data

Agile Data - Database access abstraction framework

2811.7M37](/packages/atk4-data)[clancats/hydrahon

Fast &amp; standalone PHP MySQL Query Builder library.

281205.5k5](/packages/clancats-hydrahon)[illuminated/db-profiler

Database Profiler for Laravel Web and Console Applications.

168237.4k](/packages/illuminated-db-profiler)

PHPackages © 2026

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