xref: /aosp_15_r20/external/cronet/third_party/protobuf/php/composer.json (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1{
2  "name": "google/protobuf",
3  "type": "library",
4  "description": "proto library for PHP",
5  "keywords": ["proto"],
6  "homepage": "https://developers.google.com/protocol-buffers/",
7  "license": "BSD-3-Clause",
8  "require": {
9    "php": ">=7.0.0"
10  },
11  "require-dev": {
12    "phpunit/phpunit": ">=5.0.0 <8.5.27"
13  },
14  "autoload": {
15    "psr-4": {
16      "Google\\Protobuf\\": "src/Google/Protobuf",
17      "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf"
18    }
19  },
20  "autoload-dev": {
21    "psr-4": {
22      "": "tmp"
23    },
24    "classmap": [
25      "tests/generated_previous"
26    ]
27  },
28  "scripts": {
29    "test_c": "./generate_test_protos.sh && ./tests/compile_extension.sh && php -dextension=ext/google/protobuf/modules/protobuf.so vendor/bin/phpunit --bootstrap tests/force_c_ext.php tests",
30    "test_valgrind": "./generate_test_protos.sh && ./tests/compile_extension.sh && ZEND_DONT_UNLOAD_MODULES=1 USE_ZEND_ALLOC=0 valgrind --leak-check=full --error-exitcode=1 php -dextension=ext/google/protobuf/modules/protobuf.so vendor/bin/phpunit --bootstrap tests/force_c_ext.php tests",
31    "test": "./generate_test_protos.sh && vendor/bin/phpunit tests",
32    "aggregate_metadata_test": "./generate_test_protos.sh --aggregate_metadata && vendor/bin/phpunit tests"
33  }
34}
35