Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Clickhouse Laravel Package

oralunal/laravel-clickhouse

A ClickHouse database driver for Laravel that connects your app to the column-oriented analytics engine, letting you run high-speed queries through Laravel's familiar query builder and Eloquent-style APIs.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature prioritization for analytics/OLAP workloads: v4.2.0 strengthens Laravel-native ClickHouse development through make:clickhouse-model and make:clickhouse-migration, making it more practical to ship ClickHouse-backed features such as event tracking, product telemetry, audit logs, metrics, and reporting tables.
  • Build vs. buy for data-layer plumbing: The expanded PHPStan extension reduces the need for custom internal tooling around schema-aware static analysis. PMs can weigh adopting this package against building bespoke ClickHouse model/migration abstractions and type stubs.
  • Roadmap confidence for Laravel-based data products: Improved handling of MATERIALIZED, ALIAS, read-only Float32/Float64, SchemaDropCommand, and SchemaIndexDefinition means fewer edge cases block teams from modeling real ClickHouse schemas in Laravel.
  • Developer productivity investment: Generators, better Larastan integration, and an improved lc-upgrade-3x-to-4x path lower onboarding and upgrade friction. This supports decisions to standardize Laravel teams on ClickHouse for analytical use cases.
  • Risk management for upgrades: The deprecation of PHPStan\ConnectionConfig::isReadOnly() in favor of hasReadOnlyClickHouseConnection() is a minor technical debt item. PMs should track it if the team has custom PHPStan extensions or tooling referencing the old method.
  • Use-case fit: Best suited to append-heavy, analytical, reporting, and high-volume read workloads. It is not a signal to move transactional/OLTP workloads to ClickHouse.

When to Consider This Package

  • Consider it when the product needs ClickHouse-backed analytical features inside a Laravel codebase and the team wants Eloquent-style models, migrations, schema tooling, and PHPStan/Larastan support.
  • Adopt when static analysis and developer experience are important: v4.2.0 specifically improves schema-aware PHPStan behavior, model/migration generation, and handling of ClickHouse-specific column semantics.
  • Consider it for teams already operating ClickHouse or planning to, especially where analytics tables, materialized columns, aliases, and read-only replicas are part of the design.
  • Look elsewhere if the workload is primarily transactional, the organization cannot operate ClickHouse, or the team needs a fully managed/vendor-supported database abstraction with broad enterprise support.
  • Be cautious if the codebase relies heavily on custom PHPStan extensions or upgrade tooling affected by the ConnectionConfig::isReadOnly() deprecation, or if the team is not prepared for ClickHouse-specific schema and query semantics.
  • This release is not a major architectural shift; it is primarily a developer-tooling and type-safety release. Teams should still validate operational maturity, backup/restore, multi-database strategy, and ClickHouse cluster management separately.

How to Pitch It (Stakeholders)

For executives: This package lets Laravel teams add ClickHouse-powered analytics with less custom plumbing. The v4.2.0 release improves model/migration generation and static analysis, which should reduce delivery risk and time-to-market for reporting, telemetry, and high-volume event data features. It is an enablement investment, not a platform replacement.

For engineering: v4.2.0 is a meaningful DX release: make:clickhouse-model and make:clickhouse-migration standardize scaffolding; PHPStan now understands more ClickHouse schema details, including nullable MATERIALIZED/ALIAS columns, read-only float nullability, drop()->sync(), and index()->granularity(); parallel query typing is fixed; and the 3.x-to-4.x upgrade command is more precise. The only notable cleanup is the ConnectionConfig::isReadOnly() deprecation. Recommend adoption where ClickHouse analytics are on the roadmap and the team values Laravel-native tooling and static analysis.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource