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

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

overherz/clickhouse-migrations
==============================

Clickhouse migrations for laravel/lumen

1.0.4(5y ago)08MITPHPPHP ^7.1.0

Since Feb 12Pushed 5y agoCompare

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

READMEChangelog (1)Dependencies (6)Versions (12)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

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

8

Last Release

2162d 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/b3a0bc2986d33d4fd3dd612ed4659aa5825a612bc50368436d84609902561ffd?d=identicon)[overherz](/maintainers/overherz)

---

Top Contributors

[![overherz](https://avatars.githubusercontent.com/u/6239463?v=4)](https://github.com/overherz "overherz (3 commits)")

---

Tags

laravelmigrationlumenmigrationsclikchouse

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/overherz-clickhouse-migrations/health.svg)](https://phpackages.com/packages/overherz-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)
