Paul Yang | 46ae90d | 2016-12-08 11:16:49 -0800 | [diff] [blame] | 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": { |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 9 | "php": ">=7.0.0" |
Paul Yang | 46ae90d | 2016-12-08 11:16:49 -0800 | [diff] [blame] | 10 | }, |
| 11 | "require-dev": { |
Deanna Garcia | 75cc3a2 | 2022-07-08 16:15:02 +0000 | [diff] [blame] | 12 | "phpunit/phpunit": ">=5.0.0 <8.5.27" |
Paul Yang | 46ae90d | 2016-12-08 11:16:49 -0800 | [diff] [blame] | 13 | }, |
| 14 | "autoload": { |
| 15 | "psr-4": { |
michaelbausor | 21b0e55 | 2017-08-04 16:35:22 -0700 | [diff] [blame] | 16 | "Google\\Protobuf\\": "src/Google/Protobuf", |
Timothy Younger | 5134f1a | 2018-07-23 13:33:23 -0700 | [diff] [blame] | 17 | "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf" |
| 18 | } |
| 19 | }, |
| 20 | "autoload-dev": { |
| 21 | "psr-4": { |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 22 | "": "tmp" |
Brent Shaffer | 7ed2c26 | 2022-05-31 15:19:28 -0700 | [diff] [blame] | 23 | }, |
| 24 | "classmap": [ |
| 25 | "tests/generated_previous" |
| 26 | ] |
Timothy Younger | 5134f1a | 2018-07-23 13:33:23 -0700 | [diff] [blame] | 27 | }, |
| 28 | "scripts": { |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 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", |
Joshua Haberman | b0d90e3 | 2021-05-13 23:16:49 -0700 | [diff] [blame] | 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", |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 31 | "test": "./generate_test_protos.sh && vendor/bin/phpunit tests", |
| 32 | "aggregate_metadata_test": "./generate_test_protos.sh --aggregate_metadata && vendor/bin/phpunit tests" |
Mike Kruskal | 4160837 | 2022-08-25 14:01:00 -0700 | [diff] [blame] | 33 | }, |
| 34 | "config": { |
| 35 | "process-timeout": 1200 |
Paul Yang | 46ae90d | 2016-12-08 11:16:49 -0800 | [diff] [blame] | 36 | } |
| 37 | } |