PHPackages                             nordicalf/clickhouse-doctrine - 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. nordicalf/clickhouse-doctrine

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

nordicalf/clickhouse-doctrine
=============================

Doctrine DBAL driver for ClickHouse

v1.0.4(4y ago)32.0k↓75%2MITPHPPHP ^7.3 || ^8.0

Since Dec 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/NordicAlf/clickhouse-doctrine)[ Packagist](https://packagist.org/packages/nordicalf/clickhouse-doctrine)[ Docs](http://github.com/NordicAlf/clickhouse-doctrine)[ RSS](/packages/nordicalf-clickhouse-doctrine/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

Doctrine DBAL ClickHouse Driver with fixes and updates
======================================================

[](#doctrine-dbal-clickhouse-driver-with-fixes-and-updates)

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

[](#installation)

```
composer require nordicalf/clickhouse-doctrine

```

Initialization
--------------

[](#initialization)

```
# .env
###< clickhouse ###>
CLICKHOUSE_IP=127.0.0.1
CLICKHOUSE_DB=your_db
CLICKHOUSE_USER=default
CLICKHOUSE_PASSWORD=your_password
CLICKHOUSE_PORT=8123
CLICKHOUSE_CONSOLE_PORT=9000
```

### Symfony

[](#symfony)

configure...

```
# app/config/packages/doctrine.yml
doctrine:
  dbal:
    default_connection: default
    connections:
      default:
        url: '%env(resolve:DATABASE_URL)%'
      clickhouse:
        host: '%env(resolve:CLICKHOUSE_IP)%'
        port: '%env(resolve:CLICKHOUSE_PORT)%'
        user: '%env(resolve:CLICKHOUSE_USER)%'
        password: '%env(resolve:CLICKHOUSE_PASSWORD)%'
        dbname: '%env(resolve:CLICKHOUSE_DB)%'
        driver_class: ClickhouseDoctrine\Driver
        wrapper_class: ClickhouseDoctrine\Connection
        options:
          enable_http_compression: 1
          max_execution_time: 60
```

...and get from the service container

```
$conn = $this->get('doctrine.dbal.clickhouse_connection');
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~17 days

Total

5

Last Release

1539d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/edd024306ba9230045c00703da4e3a6825f9c6693a12eb43866f4c7479bfa58c?d=identicon)[nordic\_alf](/maintainers/nordic_alf)

---

Top Contributors

[![NordicAlf](https://avatars.githubusercontent.com/u/47153340?v=4)](https://github.com/NordicAlf "NordicAlf (10 commits)")[![programmador](https://avatars.githubusercontent.com/u/674995?v=4)](https://github.com/programmador "programmador (2 commits)")

---

Tags

doctrinedbaldriverclickhouse

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nordicalf-clickhouse-doctrine/health.svg)

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

###  Alternatives

[friendsofdoctrine/dbal-clickhouse

Doctrine DBAL driver for ClickHouse

1141.2M1](/packages/friendsofdoctrine-dbal-clickhouse)[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)[nemo64/dbal-rds-data

rds-data driver for doctrine dbal

2713.2k](/packages/nemo64-dbal-rds-data)[flow-php/doctrine-dbal-bulk

Bulk inserts and updates for Doctrine DBAL

14295.2k1](/packages/flow-php-doctrine-dbal-bulk)

PHPackages © 2026

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