Skip to content

Commit 7a280f8

Browse files
authored
Merge pull request #12 from utopia-php/CLO-4383-migrate-to-client
refactor(clickhouse): migrate HTTP transport from utopia-php/fetch to utopia-php/client for persistent connection reuse
2 parents c5c721d + a64128a commit 7a280f8

14 files changed

Lines changed: 376 additions & 778 deletions

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ COPY composer.json /src/
88
RUN composer install --ignore-platform-reqs --optimize-autoloader \
99
--no-plugins --no-scripts --prefer-dist
1010

11-
FROM php:8.3.3-cli-alpine3.19 as final
11+
FROM php:8.4.22-cli-alpine3.24 as final
1212

1313
LABEL maintainer="team@appwrite.io"
1414

composer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,26 @@
1212
"scripts": {
1313
"lint": "./vendor/bin/pint --test",
1414
"format": "./vendor/bin/pint",
15-
"check": "./vendor/bin/phpstan analyse --level max src tests",
15+
"check": "./vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=1G",
1616
"test": "./vendor/bin/phpunit --configuration phpunit.xml --testsuite \"Test Suite\"",
1717
"bench": "./vendor/bin/phpunit --configuration phpunit.xml --testsuite Benchmark"
1818
},
1919
"minimum-stability": "stable",
2020
"require": {
21-
"php": ">=8.0",
22-
"utopia-php/fetch": "^1.1",
21+
"php": ">=8.4",
22+
"utopia-php/client": "^0.1|^0.2",
2323
"utopia-php/database": "5.*|6.0.*",
2424
"utopia-php/query": "0.1.*"
2525
},
2626
"require-dev": {
2727
"phpunit/phpunit": "^9.5",
2828
"utopia-php/cache": "^3.0",
29-
"phpstan/phpstan": "1.*",
29+
"phpstan/phpstan": "^2.0",
3030
"laravel/pint": "1.*"
3131
},
32+
"suggest": {
33+
"ext-curl": "Required by the default cURL transport for the ClickHouse adapter. Not needed if you inject a non-cURL utopia-php/client into the adapter."
34+
},
3235
"autoload": {
3336
"psr-4": {
3437
"Utopia\\Usage\\": "src/Usage"

composer.lock

Lines changed: 114 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
parameters:
2+
level: max
3+
paths:
4+
- src
5+
- tests

0 commit comments

Comments
 (0)