PHPackages                             stephenahiggins/doctrine-query-builder-standalone - 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. stephenahiggins/doctrine-query-builder-standalone

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

stephenahiggins/doctrine-query-builder-standalone
=================================================

A standalone version of the Doctrine Query Builder

1.0.0(2y ago)010MITPHPPHP ^7.2

Since Jan 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/stephenahiggins/standalone-doctrine-query-builder)[ Packagist](https://packagist.org/packages/stephenahiggins/doctrine-query-builder-standalone)[ RSS](/packages/stephenahiggins-doctrine-query-builder-standalone/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Standalone Doctrine Query Builder
=================================

[](#standalone-doctrine-query-builder)

A standalone implementation of the Doctrine Query Builder. Removes the dependency on having a Doctrine DB connection. This is useful for building queries for other DB connections, or using PDO to execute the query. All credit goes to the original Doctrine team.

**Note:** This is a work in progress and is not ready for production use.

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

[](#installation)

Add the repository to your project's `composer.json`.

```
composer require stephenahiggins/doctrine-query-builder-standalone:dev-main

```

Usage
-----

[](#usage)

```
use DoctrineQueryBuilder\Query\StandaloneQueryBuilder;

$qb = new StandaloneQueryBuilder();
$qb->select('*')
    ->from("test_table", 'tt')
    ->innerJoin('tt', "test_table2", 'tt2', "tt.id = tt2.id")
    ->leftJoin('tt', "test_table3", 'tt3', "tt.id = tt3.id")
    ->rightJoin('tt', "test_table4", 'tt4', "tt.id = tt4.id")
    ->setMaxResults(100);

$query = $qb->getSQL();

print "Query:" . $query.PHP_EOL;
```

### Running Tests

[](#running-tests)

Run `make run-tests`.

Support
-------

[](#support)

Please open an issue. Pull requests are welcome.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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

Unknown

Total

1

Last Release

911d ago

### Community

Maintainers

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

---

Top Contributors

[![stephenahiggins](https://avatars.githubusercontent.com/u/12612312?v=4)](https://github.com/stephenahiggins "stephenahiggins (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stephenahiggins-doctrine-query-builder-standalone/health.svg)

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

###  Alternatives

[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4585.8M4](/packages/martin-georgiev-postgresql-for-doctrine)[flow-php/doctrine-dbal-bulk

Bulk inserts and updates for Doctrine DBAL

14385.8k4](/packages/flow-php-doctrine-dbal-bulk)[giacomomasseron/laravel-models-generator

Generate Laravel models from an existing database

557.5k](/packages/giacomomasseron-laravel-models-generator)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k13](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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