PHPackages                             kenny1911/doctrine-sqlx - 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. kenny1911/doctrine-sqlx

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

kenny1911/doctrine-sqlx
=======================

0.1.0(11mo ago)033MITPHPPHP ^8.1

Since May 24Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Kenny1911/doctrine-sqlx)[ Packagist](https://packagist.org/packages/kenny1911/doctrine-sqlx)[ RSS](/packages/kenny1911-doctrine-sqlx/feed)WikiDiscussions 0.1 Synced 1mo ago

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

Doctrine SQLX
=============

[](#doctrine-sqlx)

\[ English | [Русский](./README-RU.md) \]

A library that provides a convenient syntax for working with parameters in Doctrine DBAL SQL queries, allowing direct parameter embedding in SQL strings.

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

[](#installation)

```
composer require kenny1911/doctrine-dbal-sqlx
```

Usage
-----

[](#usage)

### Basic Example

[](#basic-example)

```
use Doctrine\DBAL\Connection;
use Kenny1911\DoctrineSqlx\Sqlx;
use Kenny1911\DoctrineSqlx\Ctx;

/** @var Connection $connection */
$sqlx = new Sqlx($connection);

$result = $connection->executeQuery(static fn(Ctx $ctx): string => executeQuery(
    sql: 'SELECT * FROM users WHERE id = :id',
    params: ['id' => 1],
);
```

Benefits
--------

[](#benefits)

1. **More readable code** - parameters are visible directly in SQL strings
2. **Easier refactoring** - no need to synchronize parameter names
3. **Security** - all parameters are properly escaped
4. **Type support** - explicit parameter type specification

Limitations
-----------

[](#limitations)

1. Requires PHP 8.1+
2. Works only with Doctrine DBAL 3.x and 4.x

Related Projects
----------------

[](#related-projects)

-

License
-------

[](#license)

[MIT](./LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance56

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

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

Every ~0 days

Total

2

Last Release

350d ago

### Community

Maintainers

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

---

Top Contributors

[![Kenny1911](https://avatars.githubusercontent.com/u/25887351?v=4)](https://github.com/Kenny1911 "Kenny1911 (10 commits)")

---

Tags

doctrinedbalsqlContexttemplateparameterplaceholderparamsqlx

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kenny1911-doctrine-sqlx/health.svg)

```
[![Health](https://phpackages.com/badges/kenny1911-doctrine-sqlx/health.svg)](https://phpackages.com/packages/kenny1911-doctrine-sqlx)
```

###  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.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[jsor/doctrine-postgis

Spatial and Geographic Data with PostGIS and Doctrine.

2191.6M1](/packages/jsor-doctrine-postgis)[larapack/doctrine-support

Better Doctrine Support with Laravel (Support for `enum`)

1752.3M54](/packages/larapack-doctrine-support)[friendsofdoctrine/dbal-clickhouse

Doctrine DBAL driver for ClickHouse

1141.2M1](/packages/friendsofdoctrine-dbal-clickhouse)[enqueue/dbal

Message Queue Doctrine DBAL Transport

246.3M8](/packages/enqueue-dbal)

PHPackages © 2026

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