forked from duoshuo/php-cassandra
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcomposer.json
More file actions
executable file
·79 lines (79 loc) · 4.02 KB
/
composer.json
File metadata and controls
executable file
·79 lines (79 loc) · 4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"name": "mroosz/php-cassandra",
"type": "library",
"description": "A pure-PHP client for Apache Cassandra and ScyllaDB with support for CQL binary protocol v3, v4 and v5 (Cassandra 2.1+ incl. 3.x-5.x; ScyllaDB 6.2 and 2025.x), synchronous and asynchronous APIs, prepared statements, batches, result iterators, object mapping, SSL/TLS, and LZ4 compression.",
"keywords" : [
"cassandra",
"nosql",
"database",
"cql",
"driver",
"client"
],
"license": "MIT",
"authors": [
{
"name": "Michael Roosz",
"email": "michael.roosz@web.de"
},
{
"name": "Shen Zhenyu",
"email": "zhenyupku@gmail.com"
},
{
"name": "Evseev Nikolay",
"email": "evseevnn@gmail.com"
}
],
"homepage": "https://github.com/MichaelRoosz/php-cassandra",
"autoload": {
"psr-4": { "Cassandra\\": "src/" }
},
"autoload-dev": {
"psr-4": {
"Cassandra\\Test\\": "test/"
}
},
"require": {
"php": ">=8.1"
},
"require-dev": {
"ext-bcmath": "*",
"ext-gmp": "*",
"friendsofphp/php-cs-fixer": "^3.89.2",
"phpstan/phpstan": "^2.1.32",
"phpunit/phpunit": "^10.5.58",
"vimeo/psalm": "^7.0.0-beta11",
"phpbench/phpbench": "^1.4.3",
"bartlett/php-compatinfo": "^7.2.4"
},
"scripts": {
"lint": "vendor/bin/php-cs-fixer check",
"lint-fix": "vendor/bin/php-cs-fixer fix",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=1G",
"phpstan:tests": "vendor/bin/phpstan analyse --memory-limit=1G --configuration phpstan.tests.neon",
"psalm": "vendor/bin/psalm --no-cache",
"phpunit": "XDEBUG_MODE=coverage vendor/bin/phpunit $@",
"test:unit": "vendor/bin/phpunit --testsuite unit",
"test:integration:up": "docker compose up -d",
"test:integration:init": "bash .docker/wait-for-cassandra.sh",
"test:integration:run": "composer test:integration:run:socket && composer test:integration:run:stream",
"test:integration:run:socket": "APP_CASSANDRA_DEBUG=1 APP_CASSANDRA_HOST=127.0.0.1 APP_CASSANDRA_PORT=9142 APP_CASSANDRA_CONNECTION_MODE=socket vendor/bin/phpunit --testsuite integration",
"test:integration:run:stream": "APP_CASSANDRA_DEBUG=1 APP_CASSANDRA_HOST=127.0.0.1 APP_CASSANDRA_PORT=9142 APP_CASSANDRA_CONNECTION_MODE=stream vendor/bin/phpunit --testsuite integration",
"test:integration:down": "docker compose down -v",
"test:integration": "composer test:integration:up && composer test:integration:init && composer test:integration:run && composer test:integration:down",
"test:integration_scylladb:up": "docker compose -f docker-compose.scylladb.yml up -d",
"test:integration_scylladb:init": "bash .docker/wait-for-scylladb.sh",
"test:integration_scylladb:run": "composer test:integration_scylladb:run:socket && composer test:integration_scylladb:run:stream",
"test:integration_scylladb:run:socket": "APP_CASSANDRA_DB_TYPE=scylladb APP_CASSANDRA_DEBUG=1 APP_CASSANDRA_HOST=127.0.0.1 APP_CASSANDRA_PORT=9242 APP_CASSANDRA_CONNECTION_MODE=socket vendor/bin/phpunit --testsuite integration",
"test:integration_scylladb:run:stream": "APP_CASSANDRA_DB_TYPE=scylladb APP_CASSANDRA_DEBUG=1 APP_CASSANDRA_HOST=127.0.0.1 APP_CASSANDRA_PORT=9242 APP_CASSANDRA_CONNECTION_MODE=stream vendor/bin/phpunit --testsuite integration",
"test:integration_scylladb:down": "docker compose -f docker-compose.scylladb.yml down -v",
"test:integration_scylladb": "composer test:integration_scylladb:up && composer test:integration_scylladb:init && composer test:integration_scylladb:run && composer test:integration_scylladb:down",
"bench": "vendor/bin/phpbench run",
"bench:profile": "vendor/bin/phpbench xdebug:profile",
"find-unused-exceptions": "php scripts/find_unused_exception_codes.php"
},
"config": {
"process-timeout": 600
}
}