-
Notifications
You must be signed in to change notification settings - Fork 4
/
composer.json
92 lines (92 loc) · 3.32 KB
/
composer.json
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
{
"name": "idealo/php-rdkafka-ffi",
"description": "PHP Kafka client - binding librdkafka via FFI",
"keywords": [
"php",
"ffi",
"librdkafka",
"kafka",
"client"
],
"license": "Apache-2.0",
"authors": [
{
"name": "Dirk Adler",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"": "src/"
},
"files": [
"src/constants.php",
"src/functions.php"
]
},
"autoload-dev": {
"psr-4": {
"": "tests/",
"RdKafka\\FFIGen\\": "resources/ffigen"
}
},
"require": {
"php" : "^7.4 || ^8.0",
"ext-ffi": "*"
},
"suggest": {
"ext-zend opcache": "*",
"ext-pcntl": "*"
},
"conflict": {
"ext-rdkafka": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.4 || ^10.5",
"ircmaxell/php-c-parser": "dev-master#fd8f5efefd0fcc6c5119d945694acaa3a6790ada",
"symplify/easy-coding-standard": "^12.0",
"klitsche/ffigen": "0.8.1",
"klitsche/dog": "^0.4",
"symfony/dom-crawler": "^5.1",
"symfony/css-selector": "^5.1",
"phpbench/phpbench": "^1.1",
"composer/semver": "^3.2"
},
"scripts": {
"benchmarks-init" : [
"@php examples/delete-topic.php -tbenchmark",
"@php examples/create-topic.php -tbenchmark -p3 -r1"
],
"examples-init" : [
"@php examples/delete-topic.php -tplayground",
"@php examples/create-topic.php -tplayground -p3 -r1"
],
"test-init" : [
"@php examples/delete-topic.php -ttest",
"@php examples/delete-topic.php -ttest_admin",
"@php examples/delete-topic.php -ttest_partitions",
"@php examples/create-topic.php -ttest -p1 -r1",
"@php examples/create-topic.php -ttest_admin -p1 -r1",
"@php examples/create-topic.php -ttest_partitions -p3 -r1"
],
"test": "phpunit",
"test-coverage": "phpunit --coverage-text --coverage-clover=clover.xml",
"test-extension-init" : [
"@php -n -dextension=ffi.so examples/delete-topic.php -ttest",
"@php -n -dextension=ffi.so examples/delete-topic.php -ttest_partitions",
"@php -n -dextension=ffi.so examples/create-topic.php -ttest -p1 -r1",
"@php -n -dextension=ffi.so examples/create-topic.php -ttest_partitions -p3 -r1"
],
"test-extension": "@php -dextension=rdkafka.so resources/test-extension/vendor/bin/phpunit -c resources/test-extension/phpunit.xml",
"cs": "ecs check src tests examples resources/ffigen benchmarks --ansi",
"cs-fix": "ecs check src tests examples resources/ffigen benchmarks --ansi --fix",
"prepare-docs": [
"sed 's/docs\\/img/img/g' README.md | sed 's/LICENSE)/usage\\\/license.md)/g' | sed 's/CONTRIBUTING.md/contributing\\\/index.md/g' | sed 's/CHANGELOG.md/usage\\/changelog.md/g' > docs/index.md",
"sed 's/docs\\/contributing/./g' CONTRIBUTING.md > docs/contributing/index.md",
"cp CHANGELOG.md docs/usage/changelog.md",
"cp LICENSE docs/usage/license.md",
"php resources/docs/update-contributors.php",
"dog"
]
}
}