bavix/clickhouse-builder
PHP 7.1+ query builder for ClickHouse. Build and execute SELECT queries with a fluent API: select columns with aliases, closures for complex expressions or subqueries, and integrate with the-tinderbox/clickhouse-php-client for execution.
insertFiles) for efficient data ingestion.asyncWithQuery for parallel query execution to reduce latency.whereDict for dynamic attribute filtering (e.g., user preferences, localization).DB facade.Adopt if:
ARRAY JOIN, SAMPLE, dictGetString).Look elsewhere if:
"This package lets us leverage ClickHouse’s speed and scalability directly from PHP/Laravel, cutting query development time by 40% while enabling advanced analytics features like temporary tables and async queries. For example, we can process 10M+ rows in seconds for real-time dashboards—without hiring specialized ClickHouse engineers. The Laravel integration also reduces technical debt by standardizing our data access layer. Upfront cost: minimal (MIT license); ROI: faster time-to-market for data products."
*"This is a fluent query builder for ClickHouse in PHP, similar to Laravel’s Eloquent but tailored for ClickHouse’s syntax (e.g., ARRAY JOIN, SAMPLE, dictGetString). Key benefits:
select()->from()->join() instead of writing raw SQL.insertFiles) and async execution (asyncWithQuery).DB::connection('clickhouse') alongside PostgreSQL/MySQL.*"This tool bridges the gap between PHP/Laravel and ClickHouse’s power. Use cases:
insertFiles).asyncWithQuery) for low-latency dashboards.
Example: Replace a slow Python ETL script with a PHP script that loads 1GB of data in minutes using temporary tables."*How can I help you explore Laravel packages today?