Weave Code
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

Clickhouse Php Client Laravel Package

the-tinderbox/clickhouse-php-client

PHP 7.1+ ClickHouse HTTP client built on Guzzle. Configure single servers or clusters, pick random or specific hosts, and run queries per-cluster. Supports async SELECT and INSERT from local files via a simple Client/ServerProvider API.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Justifies buying this package over building a custom ClickHouse HTTP client, reducing development time and maintenance overhead.
  • Roadmap Alignment: Enables integration with ClickHouse for analytics, real-time reporting, or large-scale data processing in PHP-based systems.
  • Use Cases:
    • High-performance analytics: Offload complex queries to ClickHouse while keeping PHP as the application layer.
    • ETL pipelines: Efficiently ingest or export data between PHP apps and ClickHouse clusters.
    • Microservices: Decouple data access from business logic by using ClickHouse for storage/processing.
    • Hybrid architectures: Combine ClickHouse’s columnar strengths with Laravel’s ecosystem (e.g., caching query results, async processing).
  • Feature Enablement:
    • Cluster support: Route queries to specific servers/tags for failover/resilience.
    • Async operations: Parallelize batch queries (e.g., ETL jobs) without blocking.
    • File-based inserts: Stream large datasets (CSV/TSV) directly into ClickHouse, reducing memory usage.
    • Query statistics: Monitor performance (rows scanned, execution time) for optimization.

When to Consider This Package

Adopt if:

  • Your PHP app needs low-latency, high-throughput interactions with ClickHouse (e.g., >10K QPS or GB-scale data).
  • You’re using ClickHouse for analytics, logging, or real-time dashboards and want a PHP-native client.
  • Your team lacks ClickHouse expertise but needs quick integration with existing Laravel/PHP code.
  • You require cluster awareness (e.g., multi-region deployments) or tag-based routing for query affinity.
  • You’re processing large files (CSV/TSV) and want to avoid in-memory bottlenecks.

Look elsewhere if:

  • You need real-time row-by-row inserts (use ClickHouse’s native client or a streaming library).
  • Your use case is simple CRUD (consider Laravel’s Eloquent or a traditional SQL database).
  • You require active maintenance (last release was 2021; evaluate alternatives like clickhouse-php or ruudk/clickhouse).
  • You need advanced features like prepared statements or connection pooling (this package is HTTP-only).
  • Your PHP version is <7.1 (minimum requirement).

How to Pitch It (Stakeholders)

For Executives: *"This package lets us leverage ClickHouse’s blazing-fast analytics engine directly from our PHP/Laravel stack—without reinventing the wheel. It’s like adding a high-performance database to our tech stack with minimal dev effort. Key benefits:

  • Speed: Offload complex queries to ClickHouse (e.g., aggregations, time-series) while keeping our app lightweight.
  • Scalability: Handle petabytes of data with ClickHouse’s columnar storage, not our SQL DB.
  • Cost: Avoid over-provisioning traditional databases for analytical workloads.
  • Future-proof: Supports clusters and async operations, so we can scale horizontally as needed. Tradeoff: It’s not actively maintained, but the core functionality is stable and aligns with our roadmap for data-driven features."*

For Engineers: *"This is a battle-tested HTTP client for ClickHouse that integrates seamlessly with Laravel. Here’s why it’s a win:

  • Cluster-aware: Route queries to specific servers or tags (e.g., for sharding or failover).
  • Async/parallel queries: Fire off multiple SELECT/INSERT operations concurrently (e.g., for ETL jobs).
  • File streaming: Dump large CSV/TSV files directly into ClickHouse without loading them into memory.
  • Stats tracking: Get query performance metrics (rows scanned, execution time) to optimize queries. Downsides:
  • No active maintenance (last release: 2021), but it’s GPL-licensed and open-source.
  • HTTP-only (no native protocol support like clickhouse-native). Alternatives: If we need more features, we could contribute to this repo or evaluate clickhouse-php. Proposal: Start with this for MVP, then assess maintenance needs later."*
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.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime