PHP Client for ClickHouse HTTP interface
PHP
Latest commit 8873b60 Oct 7, 2016 Ilya Semenov [*] PHP7 compatible
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
composer.json

README.md

PhpClickHouseClient

PHP Client for ClickHouse HTTP interface

Use example

$client = new HttpClient();

try {
    $client->setMode(Mode::READONLY);
    $client->setFormat(Format::JSONEachRow);
    $result = $client->query($query);
}
catch (ClickHouseException $e) {
    $error = $e->getMessage();
}
$latency = $client->getLastQueryLatency();

Install through Composer

"require": {
    "SevaCode/PhpClickHouseClient": "^1.0-dev"
},
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/SevaCode/PhpClickHouseClient.git"
    }
]