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
·96 lines (96 loc) · 6.09 KB
/
Copy pathcomposer.json
File metadata and controls
executable file
·96 lines (96 loc) · 6.09 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"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, 2025.x, 2026.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"
},
"suggest": {
"ext-bcmath": "Faster large-integer math for the Varint and Decimal types, used when gmp is not present; a pure-PHP calculator is the fallback",
"ext-gmp": "Faster large-integer math for the Varint and Decimal types, preferred over bcmath when both are present; a pure-PHP calculator is the fallback",
"ext-lz4": "Native LZ4 (de)compression, used automatically when present for much faster compressed connections; a pure-PHP implementation is the transparent fallback",
"ext-openssl": "TLS/SSL encrypted connections, required for tls:// connections configured with StreamNodeConfig",
"ext-sockets": "Socket transport, required for connections configured with SocketNodeConfig; StreamNodeConfig connections need no extension"
},
"require-dev": {
"ext-bcmath": "*",
"ext-gmp": "*",
"ext-openssl": "*",
"ext-sockets": "*",
"friendsofphp/php-cs-fixer": "^3.95.18",
"phpstan/phpstan": "^2.2.8",
"phpunit/phpunit": "^10.5.64",
"vimeo/psalm": "^7.0.0-beta19",
"phpbench/phpbench": "^1.4.3",
"bartlett/php-compatinfo": "^7.2.6"
},
"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:32bit": "vendor/bin/phpstan analyse --memory-limit=1G --configuration phpstan.32bit.neon",
"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_auth:up": "docker compose -f docker-compose.auth.yml up -d",
"test:integration_auth:init": "bash .docker/wait-for-cassandra-auth.sh",
"test:integration_auth:run": "composer test:integration_auth:run:socket && composer test:integration_auth:run:stream",
"test:integration_auth:run:socket": "APP_CASSANDRA_AUTH_ENABLED=1 APP_CASSANDRA_USERNAME=cassandra APP_CASSANDRA_PASSWORD=cassandra APP_CASSANDRA_DEBUG=1 APP_CASSANDRA_HOST=127.0.0.1 APP_CASSANDRA_PORT=9342 APP_CASSANDRA_CONNECTION_MODE=socket vendor/bin/phpunit --testsuite integration",
"test:integration_auth:run:stream": "APP_CASSANDRA_AUTH_ENABLED=1 APP_CASSANDRA_USERNAME=cassandra APP_CASSANDRA_PASSWORD=cassandra APP_CASSANDRA_DEBUG=1 APP_CASSANDRA_HOST=127.0.0.1 APP_CASSANDRA_PORT=9342 APP_CASSANDRA_CONNECTION_MODE=stream vendor/bin/phpunit --testsuite integration",
"test:integration_auth:down": "docker compose -f docker-compose.auth.yml down -v",
"test:integration_auth": "composer test:integration_auth:up && composer test:integration_auth:init && composer test:integration_auth:run && composer test:integration_auth: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
}
}