blob: 0e498fcb78de23e6a24bed0bef020c7a1c6f23fe [file] [log] [blame]
Paul Yang46ae90d2016-12-08 11:16:49 -08001{
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": {
Joshua Haberman8b870752021-05-04 10:19:22 -07009 "php": ">=7.0.0"
Paul Yang46ae90d2016-12-08 11:16:49 -080010 },
11 "require-dev": {
Deanna Garcia75cc3a22022-07-08 16:15:02 +000012 "phpunit/phpunit": ">=5.0.0 <8.5.27"
Paul Yang46ae90d2016-12-08 11:16:49 -080013 },
14 "autoload": {
15 "psr-4": {
michaelbausor21b0e552017-08-04 16:35:22 -070016 "Google\\Protobuf\\": "src/Google/Protobuf",
Timothy Younger5134f1a2018-07-23 13:33:23 -070017 "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf"
18 }
19 },
20 "autoload-dev": {
21 "psr-4": {
Joshua Haberman8b870752021-05-04 10:19:22 -070022 "": "tmp"
Brent Shaffer7ed2c262022-05-31 15:19:28 -070023 },
24 "classmap": [
25 "tests/generated_previous"
26 ]
Timothy Younger5134f1a2018-07-23 13:33:23 -070027 },
28 "scripts": {
Joshua Haberman8b870752021-05-04 10:19:22 -070029 "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",
Joshua Habermanb0d90e32021-05-13 23:16:49 -070030 "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",
Joshua Haberman8b870752021-05-04 10:19:22 -070031 "test": "./generate_test_protos.sh && vendor/bin/phpunit tests",
32 "aggregate_metadata_test": "./generate_test_protos.sh --aggregate_metadata && vendor/bin/phpunit tests"
Mike Kruskal41608372022-08-25 14:01:00 -070033 },
34 "config": {
35 "process-timeout": 1200
Paul Yang46ae90d2016-12-08 11:16:49 -080036 }
37}