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

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

mavlitov98/clickhouse-migrations
================================

v1.0.0(3y ago)913.1k↓37.5%1[1 PRs](https://github.com/mavlitov98/clickhouse-migrations/pulls)MITPHPPHP ^8.1

Since Feb 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mavlitov98/clickhouse-migrations)[ Packagist](https://packagist.org/packages/mavlitov98/clickhouse-migrations)[ RSS](/packages/mavlitov98-clickhouse-migrations/feed)WikiDiscussions master Synced 1mo ago

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

### ClickhouseMigrationsBundle

[](#clickhousemigrationsbundle)

[![psalm level](https://camo.githubusercontent.com/12a5e6f54635556c1726dd3c54c44f18f7b397c91a9a51f69d069937af31ea2c/68747470733a2f2f73686570686572642e6465762f6769746875622f6d61766c69746f7639382f636c69636b686f7573652d6d6967726174696f6e732f6c6576656c2e737667)](https://camo.githubusercontent.com/12a5e6f54635556c1726dd3c54c44f18f7b397c91a9a51f69d069937af31ea2c/68747470733a2f2f73686570686572642e6465762f6769746875622f6d61766c69746f7639382f636c69636b686f7573652d6d6967726174696f6e732f6c6576656c2e737667)[![psalm type coverage](https://camo.githubusercontent.com/ad42209f094ca2a11bb5bd6479f32abd23bc5b945425ffcfd29287010812b495/68747470733a2f2f73686570686572642e6465762f6769746875622f6d61766c69746f7639382f636c69636b686f7573652d6d6967726174696f6e732f636f7665726167652e737667)](https://camo.githubusercontent.com/ad42209f094ca2a11bb5bd6479f32abd23bc5b945425ffcfd29287010812b495/68747470733a2f2f73686570686572642e6465762f6769746875622f6d61766c69746f7639382f636c69636b686f7573652d6d6967726174696f6e732f636f7665726167652e737667)

This bundle integrates the Clickhouse Migrations 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.

### Installation

[](#installation)

```
composer require mavlitov98/clickhouse-migrations
```

If you don't use [Symfony Flex](https://symfony.com/components/Symfony%20Flex), you must enable the bundle manually in the application:

```
// config/bundles.php
// in older Symfony apps, enable the bundle in app/AppKernel.php
return [
    // ...
    ClickhouseMigrations\ClickhouseMigrationsBundle::class => ['all' => true],
];
```

### Configuration

[](#configuration)

```
# in config/packages/clickhouse_migrations.yaml

clickhouse_migrations:
  connection: # connection configuration (required)
    host: '%env(CLICKHOUSE_HOST)%'
    port: '%env(CLICKHOUSE_PORT)%'
    username: '%env(CLICKHOUSE_USERNAME)%'
    password: '%env(CLICKHOUSE_PASSWORD)%'
  clickhouse_migrations_version_table: 'ch_migrations' # version table name (optional)
  clickhouse_migrations_path: '%kernel.project_dir%/src/Migrations/Clickhouse' # migration path (optional)
  clickhouse_migrations_namespace: 'App\\Migrations\\Clickhouse' # migration class namespace (optional)
```

### Commands

[](#commands)

> *Generate new migration for ClickHouse:*

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

> *Apply all generated migrations to ClickHouse:*

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

> *Apply or rollback ClickHouse migration:*

```
php bin/console clickhouse-migrations:execute [VersionXXXXXXXXXXXXXX] [up|down]
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

1189d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03d281087b195a55ea9a131cd8fedfcbef43430b25f4bf122393c0e70644c9ff?d=identicon)[mavlitov98](/maintainers/mavlitov98)

---

Top Contributors

[![mavlitov98](https://avatars.githubusercontent.com/u/67925054?v=4)](https://github.com/mavlitov98 "mavlitov98 (19 commits)")

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2031.2M2](/packages/glushkovds-phpclickhouse-laravel)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[friendsofdoctrine/dbal-clickhouse

Doctrine DBAL driver for ClickHouse

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

PHPackages © 2026

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