PHPackages                             rezon73/pdo-clickhouse - 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. rezon73/pdo-clickhouse

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

rezon73/pdo-clickhouse
======================

Just another Slim PDO database library special for ClickHouse

1.3.7(5y ago)033[1 issues](https://github.com/rezon73/slim-pdo-clickhouse/issues)MITPHPPHP &gt;=7.4.0CI failing

Since Jul 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/rezon73/slim-pdo-clickhouse)[ Packagist](https://packagist.org/packages/rezon73/pdo-clickhouse)[ Docs](https://github.com/rezon73/PDO)[ RSS](/packages/rezon73-pdo-clickhouse/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (15)Used By (0)

PDOClickHouse
=============

[](#pdoclickhouse)

[![Latest Stable Version](https://camo.githubusercontent.com/b102fa8a75b4ad2fdb5d1c1bac29157167a67974a8e450c30f2f70999324ebd0/68747470733a2f2f706f7365722e707567782e6f72672f666161707a2f70646f2f762f737461626c65)](https://packagist.org/packages/faapz/pdo)[![Total Downloads](https://camo.githubusercontent.com/51bbd37114e7ed2d30eb4993c2df7f54b4b3b980c473fd8fcfe0f4498c2a2667/68747470733a2f2f706f7365722e707567782e6f72672f666161707a2f70646f2f646f776e6c6f616473)](https://packagist.org/packages/faapz/pdo)[![Latest Unstable Version](https://camo.githubusercontent.com/32bd39be5032e7bac6fe389dc7ea44ed224b7831b935911703125e97bed7260a/68747470733a2f2f706f7365722e707567782e6f72672f666161707a2f70646f2f762f756e737461626c65)](https://packagist.org/packages/faapz/pdo)[![License](https://camo.githubusercontent.com/5a11ea35316099021f0f3eaf72b6f0d935a468b1e8ee823d2317af6eb869b0a2/68747470733a2f2f706f7365722e707567782e6f72672f666161707a2f70646f2f6c6963656e7365)](https://packagist.org/packages/faapz/pdo)

Just another PDOClickHouse database library

### Installation

[](#installation)

Use [Composer](https://getcomposer.org/)

```
$ composer require rezon73/pdo-vertica
```

### Usage

[](#usage)

Examples selecting, inserting, updating and deleting data from or into `users` table.

```
require_once 'vendor/autoload.php';

$hostname = '127.0.0.1';
$port = 8123;

$pdo = new \Rezon73\PDOClickHouse\Database($hostname, $port);

// SELECT * FROM users WHERE id = ?
$selectStatement = $pdo->select()
                       ->from('users')
                       ->where('id', '=', 1234);

$stmt = $selectStatement->execute();
$data = $stmt->fetch();

// INSERT INTO users ( id , usr , pwd ) VALUES ( ? , ? , ? )
$insertStatement = $pdo->insert(array(
                           "id" =>1234,
                           "usr" => "your_username",
                           "pwd" => "your_password"
                       ))
                       ->into("users");

$insertStatement->execute();

// UPDATE users SET pwd = ? WHERE id = ?
$updateStatement = $pdo->update(array("pwd" => "your_new_password"))
                       ->table("users")
                       ->where(new Clause\Conditional("id", "=", 1234));

$affectedRows = $updateStatement->execute();

// DELETE FROM users WHERE id = ?
$deleteStatement = $pdo->delete()
                       ->from("users")
                       ->where(new Clause\Conditional("id", "=", 1234));

$affectedRows = $deleteStatement->execute();
```

> The `sqlsrv` extension will fail to connect when using error mode `PDOClickHouse::ERRMODE_EXCEPTION` (default). To connect, you will need to explicitly pass `array(PDOClickHouse::ATTR_ERRMODE => PDOClickHouse::ERRMODE_WARNING)` (or `PDOClickHouse::ERRMODE_SILENT`) into the constructor, or override the `getDefaultOptions()` method when using `sqlsrv`.

### Documentation

[](#documentation)

See [DOCUMENTATION](docs/README.md)

### Changelog

[](#changelog)

See [CHANGELOG](CHANGELOG.md)

### License

[](#license)

See [LICENSE](LICENSE)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Total

14

Last Release

1976d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a859d0eeb819af96d39305bd6c74e85cef43a2c4ee0a83a1fc6223679294236?d=identicon)[rezon73](/maintainers/rezon73)

---

Top Contributors

[![rezon73](https://avatars.githubusercontent.com/u/3044574?v=4)](https://github.com/rezon73 "rezon73 (5 commits)")

---

Tags

databasesqlpdoclickhouse

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/rezon73-pdo-clickhouse/health.svg)

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

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k605.0M6.8k](/packages/doctrine-dbal)[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k6.0M76](/packages/ifsnop-mysqldump-php)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4883.1M37](/packages/aura-sqlquery)[paragonie/easydb

Easy-to-use database abstraction

736280.1k24](/packages/paragonie-easydb)[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k23.2k](/packages/clouddueling-mysqldump-php)[ezsql/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86748.3k](/packages/ezsql-ezsql)

PHPackages © 2026

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