symfonyx / clickhouse-service-provider
Clickhouse service provider for Silex
dev-master / 1.x-dev
2017-09-11 18:09 UTC
Requires
- php: ^7.0
- silex/silex: ~2.0
- smi2/phpclickhouse: ^0.17
This package is auto-updated.
Last update: 2025-01-09 23:05:35 UTC
README
phpClickHouse Service Provider for Silex PHP framework.
Installation
{ "require": { "symfonyx/clickhouse-service-provider": "1.x-dev" } }
Usage
use Silex\Application; use Symfonyx\Silex\ClickhouseServiceProvider $app = new Application(); $app['clickhouse.params'] = [ 'host' => '127.0.0.1', 'port' => '8123', 'username' => 'default', 'password' => '', 'dbname' => 'default', 'timeout' => 10, 'connect_timeout' => 5 ]; $app->register(new ClickhouseServiceProvider('clickhouse'));
License
MIT License