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

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

kruteev/clickhouse-migrations
=============================

Clickhouse migrations for laravel/lumen

1.0.1-stable(6y ago)112MITPHPPHP ^7.1.0

Since Feb 12Pushed 6y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (6)Versions (9)Used By (0)

Clickhouse DB migrations for Laravel
====================================

[](#clickhouse-db-migrations-for-laravel)

ClickHouse is an open source column-oriented database management system capable of real time generation of analytical data reports using SQL queries. Library is suitable for Laravel.

Installing
----------

[](#installing)

```
composer require serkarn/laravel-clickhouse-migrations
```

Usage
-----

[](#usage)

### Configure /config/database.php

[](#configure-configdatabasephp)

Example for clickhouse and migrations settings:

```
...
'clickhouse' => [
    'host' => env('CLICKHOUSE_HOST', 'localhost'),
    'port' => env('CLICKHOUSE_PORT', 8123),
    'username' => env('CLICKHOUSE_USER', 'default'),
    'password' => env('CLICKHOUSE_PASSWORD', ''),
    'options' => [
        'database' => env('CLICKHOUSE_DATABASE', 'default'),
        'timeout' => 1,
        'connectTimeOut' => 2,
    ],
],
'clickhouse-migrations' => [
    'dir' => env('CLICKHOUSE_MIGRATION_DIR', '/database/clickhouse-migrations/'),
    'table' => env('CLICKHOUSE_MIGRATION_TABLE_NAME', 'migrations'),
],
    ...
```

### Register provider

[](#register-provider)

```
'providers' => [
    ...
    \Serkarn\ClickhouseMigrations\ClickhouseProvider::class,
    ...
],
```

Usage
-----

[](#usage-1)

### Create new migration

[](#create-new-migration)

```
php artisan clickhouse:migration:create {name}
```

### Up migrations

[](#up-migrations)

```
php artisan clickhouse:migrate
```

### Down last migration

[](#down-last-migration)

```
php artisan clickhouse:migrate --down

```

Built With
----------

[](#built-with)

-  - PHP ClickHouse wrapper

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity61

Established project with proven stability

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 ~54 days

Total

5

Last Release

2429d ago

Major Versions

0.1.2 → 1.0.02019-09-17

PHP version history (2 changes)0.1.0PHP ^7.1.3

1.0.1-stablePHP ^7.1.0

### Community

Maintainers

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

---

Tags

laravelmigrationlumenmigrationsclikchouse

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[kitloong/laravel-migrations-generator

Generates Laravel Migrations from an existing database

2.9k7.4M24](/packages/kitloong-laravel-migrations-generator)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)

PHPackages © 2026

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