blob: f712f0ebb9d639b0b5a5c4433c13235297ed4e4c [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": {
Paul Yang525be942021-02-04 09:50:28 -080012 "phpunit/phpunit": ">=5.0.0"
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 Shafferb9b34e92017-06-14 15:57:11 -070023 }
Timothy Younger5134f1a2018-07-23 13:33:23 -070024 },
25 "scripts": {
Joshua Haberman8b870752021-05-04 10:19:22 -070026 "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 -070027 "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 -070028 "test": "./generate_test_protos.sh && vendor/bin/phpunit tests",
29 "aggregate_metadata_test": "./generate_test_protos.sh --aggregate_metadata && vendor/bin/phpunit tests"
Paul Yang46ae90d2016-12-08 11:16:49 -080030 }
31}