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

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

professionalweb/query-builder
=============================

SQL query builder

0.5.2(8y ago)04601MITPHPPHP &gt;=5.4.0

Since Jun 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/SergioMadness/query-builder)[ Packagist](https://packagist.org/packages/professionalweb/query-builder)[ Docs](http://web-development.pw/)[ RSS](/packages/professionalweb-query-builder/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (7)Dependencies (3)Versions (9)Used By (1)

SQL query builder
=================

[](#sql-query-builder)

[![Latest Stable Version](https://camo.githubusercontent.com/e85aed36d3e3176192b7ee8b6e79c20197c4fcacde09c673142c345d8d87c391/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c7765622f71756572792d6275696c6465722f762f737461626c65)](https://packagist.org/packages/professionalweb/query-builder)[![Build Status](https://camo.githubusercontent.com/4844d943df7b8f1dc36deb14f3401da5e7bf02b74fd0cf777f021049ecde75e7/68747470733a2f2f7472617669732d63692e6f72672f53657267696f4d61646e6573732f71756572792d6275696c6465722e7376673f6272616e63683d646576)](https://travis-ci.org/SergioMadness/query-builder)[![Code Climate](https://camo.githubusercontent.com/f7a03d523838b99041a7593a4413e0d9f2fd1d927433e9050d8c65f60670024d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f53657267696f4d61646e6573732f71756572792d6275696c6465722f6261646765732f6770612e737667)](https://codeclimate.com/github/SergioMadness/query-builder)[![Coverage Status](https://camo.githubusercontent.com/cca8dd1db87737380f533324db6ab09f2c033b26e1e7905f1ec0ad616b06507d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f53657267696f4d61646e6573732f71756572792d6275696c6465722f62616467652e7376673f6272616e63683d646576)](https://coveralls.io/github/SergioMadness/query-builder?branch=dev)[![Dependency Status](https://camo.githubusercontent.com/f75320d35bd7cb84baff40426b28ea7afff0020ef5c6a151fcfe1f0ff6d6075b/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537353831633161373735376130303033346463346135652f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/57581c1a7757a00034dc4a5e)[![License](https://camo.githubusercontent.com/23c1027602226c441484076da140e8efa41e8ff90166dba58579ef7390fe32a7/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c7765622f71756572792d6275696c6465722f6c6963656e7365)](https://packagist.org/packages/professionalweb/query-builder)[![Latest Unstable Version](https://camo.githubusercontent.com/01f85631d0ea3a03effcba30a5779ae146c188e77684a7e16606a9b54a36ae1c/68747470733a2f2f706f7365722e707567782e6f72672f70726f66657373696f6e616c7765622f71756572792d6275696c6465722f762f756e737461626c65)](https://packagist.org/packages/professionalweb/query-builder)

Project structure
-----------------

[](#project-structure)

```
abstraction/         abstract classes
adapters/            implementations for different databases
interfaces/          interfaces
traits/              traits

```

Requirements
------------

[](#requirements)

- PHP 5.4+

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

[](#installation)

Query builder is available through [composer](https://getcomposer.org/)

composer require professionalweb/query-builder "dev-master"

Alternatively you can add the following to the `require` section in your `composer.json` manually:

```
"professionalweb/query-builder": "dev-master"
```

Run `composer update` afterwards.

The MIT License (MIT)
---------------------

[](#the-mit-license-mit)

Copyright (c) 2016 Sergey Zinchenko, [Professional web](http://web-development.pw)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Recently: every ~131 days

Total

7

Last Release

3056d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1365ec6405d0ae656f92345bbe388afc34a12a19c3ab0c9ff909b5d4ea3d83a0?d=identicon)[SergioMadness](/maintainers/SergioMadness)

---

Top Contributors

[![SergioMadness](https://avatars.githubusercontent.com/u/9610601?v=4)](https://github.com/SergioMadness "SergioMadness (21 commits)")

---

Tags

composersqlquerybuilderprofessional webpwfweb-development.pw

###  Code Quality

TestsCodeception

### Embed Badge

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

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

###  Alternatives

[nilportugues/sql-query-builder

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

426242.6k6](/packages/nilportugues-sql-query-builder)[izniburak/pdox

Useful Query Builder, PDO Class for PHP. A simple access to your SQL records.

29921.5k7](/packages/izniburak-pdox)[sad_spirit/pg_builder

Query builder for Postgres backed by SQL parser

5936.4k1](/packages/sad-spirit-pg-builder)

PHPackages © 2026

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