PHPackages                             steffanharmaajarvi/clickhouse-migrations-bundle - 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. steffanharmaajarvi/clickhouse-migrations-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

steffanharmaajarvi/clickhouse-migrations-bundle
===============================================

Symfony ClickhouseMigrationsBundle

v2.0.1(10mo ago)06MITPHPPHP &gt;=7.1

Since Mar 16Pushed 10mo agoCompare

[ Source](https://github.com/steffanharmaajarvi/doctrine-migrations-bundle)[ Packagist](https://packagist.org/packages/steffanharmaajarvi/clickhouse-migrations-bundle)[ RSS](/packages/steffanharmaajarvi-clickhouse-migrations-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (9)Used By (0)

ClickhouseMigrationsBundle
==========================

[](#clickhousemigrationsbundle)

This bundle added the migrations system for [clickhouse type Databases](https://clickhouse.tech/docs/)into Symfony applications. Database migrations help you version the changes in your database schema and apply them in a predictable way on every server running the application.

Install
-------

[](#install)

```
composer require dmamontov/clickhouse-migrations-bundle

```

Clickhouse connection
---------------------

[](#clickhouse-connection)

For use this bundle you need set clickhouse Client as Symfony service. As example:

```
#config/services.yaml
services:
    ClickHouseDB\Client:
        arguments:
            $connectParams:
                host: 'http://localhost'
                port: 8123
                username: 'username'
                password: ''
                sslCA: 'path_to_ssl_cert'
            $settings:
                database: 'default'
```

[More details about ClickHouseDB\\Client settings](https://github.com/smi2/phpClickHouse).

Settings
--------

[](#settings)

If you need set migrations, set clickhouse migrations configuration. But this is not necessary, these settings are set by default:

```
#config/packages/clickhouse_migrations.yaml
clickhouse_migrations:
    table_name: 'migrations_versions'
    migrations_path: '%kernel.project_dir%/clickhouse_migrations'
    migrations_namespace: 'ClickhouseMigrations'
```

Using
-----

[](#using)

Generate new migration class:

```
bin/console clickhouse:migrations:generate
```

Execute all unapplied migrations up:

```
bin/console clickhouse:migrations:migrate
```

One last migration down:

```
bin/console clickhouse:migrations:migrate down
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance54

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~127 days

Recently: every ~198 days

Total

8

Last Release

314d ago

Major Versions

v1.0.0 → v2.0.02025-08-25

### Community

Maintainers

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

---

Top Contributors

[![dmamontov](https://avatars.githubusercontent.com/u/5955726?v=4)](https://github.com/dmamontov "dmamontov (9 commits)")[![AKonnov](https://avatars.githubusercontent.com/u/19725844?v=4)](https://github.com/AKonnov "AKonnov (3 commits)")

---

Tags

migrationsclickhouse

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/steffanharmaajarvi-clickhouse-migrations-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/steffanharmaajarvi-clickhouse-migrations-bundle/health.svg)](https://phpackages.com/packages/steffanharmaajarvi-clickhouse-migrations-bundle)
```

PHPackages © 2026

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