diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2016-12-08 11:16:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-08 11:16:49 -0800 |
commit | 46ae90dc5e145b12fffa7e053a908a9f3e066286 (patch) | |
tree | e15e50f9a986bd64cd4413b135382a305701437f /php/composer.json | |
parent | 631f4618a7b84cdc91949229a11a8abe5dfc4a34 (diff) | |
download | protobuf-46ae90dc5e145b12fffa7e053a908a9f3e066286.tar.gz protobuf-46ae90dc5e145b12fffa7e053a908a9f3e066286.tar.bz2 protobuf-46ae90dc5e145b12fffa7e053a908a9f3e066286.zip |
Make php generated code conform to PSR-4. (#2435)
1. Generate single file for each message.
2. Lazily initiate metadata.
Diffstat (limited to 'php/composer.json')
-rw-r--r-- | php/composer.json | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/php/composer.json b/php/composer.json new file mode 100644 index 00000000..3dae2865 --- /dev/null +++ b/php/composer.json @@ -0,0 +1,27 @@ +{ + "name": "google/protobuf", + "type": "library", + "description": "proto library for PHP", + "keywords": ["proto"], + "homepage": "https://developers.google.com/protocol-buffers/", + "license": "BSD-3-Clause", + "require": { + "php": ">=5.5.0" + }, + "require-dev": { + "phpunit/phpunit": ">=4.8.0" + }, + "autoload": { + "psr-4": { + "Foo\\": "tests/generated/Foo", + "Bar\\": "tests/generated/Bar", + "Google\\Protobuf\\": "tests/generated/Google/Protobuf", + "Google\\Protobuf\\Internal\\": "src/Google/Protobuf/Internal", + "GPBMetadata\\": "tests/generated/GPBMetadata", + "GPBMetadata\\Google\\Protobuf\\Internal\\": "src/GPBMetadata/Google/Protobuf/Internal" + }, + "files": [ + "src/Google/Protobuf/descriptor.php" + ] + } +} |