• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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": ">=8.1.0"
10  },
11  "provide": {
12    "ext-protobuf": "*"
13  },
14  "require-dev": {
15    "phpunit/phpunit": ">=5.0.0 <8.5.27"
16  },
17  "autoload": {
18    "psr-4": {
19      "Google\\Protobuf\\": "src/Google/Protobuf",
20      "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf"
21    }
22  },
23  "autoload-dev": {
24    "psr-4": {
25      "": "tmp"
26    },
27    "classmap": [
28      "tests/generated_previous"
29    ]
30  },
31  "scripts": {
32    "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",
33    "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",
34    "test": "./generate_test_protos.sh && vendor/bin/phpunit tests",
35    "aggregate_metadata_test": "./generate_test_protos.sh --aggregate_metadata && vendor/bin/phpunit tests"
36  },
37  "config": {
38    "process-timeout": 1200
39  }
40}
41