Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
75 lines (75 loc) · 2.39 KB
/
Copy pathcomposer.json
File metadata and controls
75 lines (75 loc) · 2.39 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
{
"name": "crazy-goat/ladybug-php",
"description": "PHP client for LadybugDB (embedded graph database) \u2014 native extension and FFI connectors behind one API",
"type": "library",
"license": "MIT",
"require": {
"php": ">=8.2"
},
"suggest": {
"ext-ffi": "Enables the FFI connector (no compilation required)",
"ext-ladybug": "Enables the native connector (fastest)",
"ext-bcmath": "Lossless INT128 and DECIMAL handling"
},
"autoload": {
"psr-4": {
"Ladybug\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Ladybug\\Tests\\": "tests/",
"Ladybug\\Tools\\": "tools/"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.68",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^11.5",
"rector/rector": "^2.0"
},
"keywords": [
"ladybug",
"ladybugdb",
"kuzu",
"graph",
"graph-database",
"cypher",
"ffi",
"extension"
],
"scripts": {
"test": "phpunit",
"test:unit": "phpunit --testsuite unit",
"test:integration": "phpunit --testsuite integration",
"test:ffi": "LADYBUG_CONNECTOR=ffi phpunit --testsuite integration",
"test:ext": "LADYBUG_CONNECTOR=ext php -d extension=$PWD/ext/modules/ladybug.so vendor/bin/phpunit --testsuite integration",
"stan": "phpstan analyse",
"rector": "rector process --dry-run",
"rector:fix": "rector process",
"cs": "php-cs-fixer fix --dry-run --diff",
"cs:fix": "php-cs-fixer fix",
"lint": "bin/lint.sh",
"lint:fix": "bin/lint.sh --fix",
"ci": [
"@lint",
"@test"
],
"test:both": [
"@test:ffi",
"@test:ext"
]
},
"scripts-descriptions": {
"test:ffi": "Runs the integration suite against the FFI connector",
"test:ext": "Runs the same suite against the native extension",
"lint": "bin/lint.sh: php-cs-fixer, PHPStan, Rector, clang-format, shellcheck, hadolint (check only)",
"lint:fix": "bin/lint.sh --fix: apply the fixers, then check",
"ci": "Everything CI runs: lint and tests",
"test:both": "Runs the integration suite twice: once per backend"
}
}