composer.json 932 B

123456789101112131415161718192021222324252627282930
  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"
  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. },
  25. "scripts": {
  26. "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",
  27. "test": "./generate_test_protos.sh && vendor/bin/phpunit tests",
  28. "aggregate_metadata_test": "./generate_test_protos.sh --aggregate_metadata && vendor/bin/phpunit tests"
  29. }
  30. }