├── .gitignore ├── .travis.yml ├── LICENSE ├── Makefile ├── README.md ├── bin └── protobuf ├── composer.json ├── phpunit.xml.dist ├── ruleset.xml ├── src ├── Command │ ├── Application.php │ ├── GenerateCommand.php │ └── PluginCommand.php ├── Compiler.php ├── Context.php ├── Entity.php ├── EntityBuilder.php ├── Generator.php ├── Generator │ ├── BaseGenerator.php │ ├── EntityVisitor.php │ ├── EnumGenerator.php │ ├── ExtensionGenerator.php │ ├── GeneratorVisitor.php │ ├── Message │ │ ├── ClearGenerator.php │ │ ├── ConstructGenerator.php │ │ ├── DescriptorGenerator.php │ │ ├── ExtensionsGenerator.php │ │ ├── FieldsGenerator.php │ │ ├── FromArrayGenerator.php │ │ ├── FromStreamGenerator.php │ │ ├── MergeGenerator.php │ │ ├── ReadFieldStatementGenerator.php │ │ ├── ReadFromGenerator.php │ │ ├── SerializedSizeFieldStatementGenerator.php │ │ ├── SerializedSizeGenerator.php │ │ ├── ToStreamGenerator.php │ │ ├── WriteFieldStatementGenerator.php │ │ └── WriteToGenerator.php │ ├── MessageGenerator.php │ └── ServiceGenerator.php ├── Options.php └── Protoc │ └── ProcessBuilder.php └── tests ├── Command ├── ApplicationTest.php ├── GenerateCommandTest.php └── PluginCommandTest.php ├── CompilerTest.php ├── Descriptor ├── AccessorsTest.php ├── ClearTest.php ├── MergeTest.php ├── MessageDescriptorTest.php ├── SerializedSizeTest.php └── ToStreamTest.php ├── EntityBuilderTest.php ├── EntityTest.php ├── Fixtures ├── Extension │ ├── Dog.tpl │ └── Extension.tpl ├── Options │ ├── ParentMessage │ │ └── InnerMessage │ │ │ └── InnerMessageEnum.tpl │ └── SimpleMessage.tpl ├── Person.tpl ├── Person │ └── PhoneType.tpl ├── PhoneNumber.tpl ├── Service │ └── SearchService.tpl ├── Simple.tpl └── compiler │ └── generator-request-simple.bin ├── Generator ├── BaseGeneratorTest.php └── Message │ ├── ReadFieldStatementGeneratorTest.php │ ├── ReadFromGeneratorTest.php │ ├── SerializedSizeFieldStatementGeneratorTest.php │ ├── SerializedSizeGeneratorTest.php │ ├── WriteFieldStatementGeneratorTest.php │ └── WriteToGeneratorTest.php ├── GeneratorTest.php ├── OptionsTest.php ├── Protoc └── ProcessBuilderTest.php ├── Protos └── .gitignore ├── Resources ├── proto2 │ ├── addressbook.proto │ ├── options.proto │ ├── repeated.proto │ └── simple.proto └── proto3 │ └── route_guide.proto ├── TestCase.php └── travis └── install-protobuf.sh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/README.md -------------------------------------------------------------------------------- /bin/protobuf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/bin/protobuf -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /ruleset.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/ruleset.xml -------------------------------------------------------------------------------- /src/Command/Application.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Command/Application.php -------------------------------------------------------------------------------- /src/Command/GenerateCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Command/GenerateCommand.php -------------------------------------------------------------------------------- /src/Command/PluginCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Command/PluginCommand.php -------------------------------------------------------------------------------- /src/Compiler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Compiler.php -------------------------------------------------------------------------------- /src/Context.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Context.php -------------------------------------------------------------------------------- /src/Entity.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Entity.php -------------------------------------------------------------------------------- /src/EntityBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/EntityBuilder.php -------------------------------------------------------------------------------- /src/Generator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator.php -------------------------------------------------------------------------------- /src/Generator/BaseGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/BaseGenerator.php -------------------------------------------------------------------------------- /src/Generator/EntityVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/EntityVisitor.php -------------------------------------------------------------------------------- /src/Generator/EnumGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/EnumGenerator.php -------------------------------------------------------------------------------- /src/Generator/ExtensionGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/ExtensionGenerator.php -------------------------------------------------------------------------------- /src/Generator/GeneratorVisitor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/GeneratorVisitor.php -------------------------------------------------------------------------------- /src/Generator/Message/ClearGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/ClearGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/ConstructGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/ConstructGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/DescriptorGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/DescriptorGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/ExtensionsGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/ExtensionsGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/FieldsGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/FieldsGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/FromArrayGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/FromArrayGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/FromStreamGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/FromStreamGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/MergeGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/MergeGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/ReadFieldStatementGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/ReadFieldStatementGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/ReadFromGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/ReadFromGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/SerializedSizeFieldStatementGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/SerializedSizeFieldStatementGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/SerializedSizeGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/SerializedSizeGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/ToStreamGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/ToStreamGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/WriteFieldStatementGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/WriteFieldStatementGenerator.php -------------------------------------------------------------------------------- /src/Generator/Message/WriteToGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/Message/WriteToGenerator.php -------------------------------------------------------------------------------- /src/Generator/MessageGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/MessageGenerator.php -------------------------------------------------------------------------------- /src/Generator/ServiceGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Generator/ServiceGenerator.php -------------------------------------------------------------------------------- /src/Options.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Options.php -------------------------------------------------------------------------------- /src/Protoc/ProcessBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/src/Protoc/ProcessBuilder.php -------------------------------------------------------------------------------- /tests/Command/ApplicationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Command/ApplicationTest.php -------------------------------------------------------------------------------- /tests/Command/GenerateCommandTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Command/GenerateCommandTest.php -------------------------------------------------------------------------------- /tests/Command/PluginCommandTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Command/PluginCommandTest.php -------------------------------------------------------------------------------- /tests/CompilerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/CompilerTest.php -------------------------------------------------------------------------------- /tests/Descriptor/AccessorsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Descriptor/AccessorsTest.php -------------------------------------------------------------------------------- /tests/Descriptor/ClearTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Descriptor/ClearTest.php -------------------------------------------------------------------------------- /tests/Descriptor/MergeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Descriptor/MergeTest.php -------------------------------------------------------------------------------- /tests/Descriptor/MessageDescriptorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Descriptor/MessageDescriptorTest.php -------------------------------------------------------------------------------- /tests/Descriptor/SerializedSizeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Descriptor/SerializedSizeTest.php -------------------------------------------------------------------------------- /tests/Descriptor/ToStreamTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Descriptor/ToStreamTest.php -------------------------------------------------------------------------------- /tests/EntityBuilderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/EntityBuilderTest.php -------------------------------------------------------------------------------- /tests/EntityTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/EntityTest.php -------------------------------------------------------------------------------- /tests/Fixtures/Extension/Dog.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Fixtures/Extension/Dog.tpl -------------------------------------------------------------------------------- /tests/Fixtures/Extension/Extension.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Fixtures/Extension/Extension.tpl -------------------------------------------------------------------------------- /tests/Fixtures/Options/ParentMessage/InnerMessage/InnerMessageEnum.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Fixtures/Options/ParentMessage/InnerMessage/InnerMessageEnum.tpl -------------------------------------------------------------------------------- /tests/Fixtures/Options/SimpleMessage.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Fixtures/Options/SimpleMessage.tpl -------------------------------------------------------------------------------- /tests/Fixtures/Person.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Fixtures/Person.tpl -------------------------------------------------------------------------------- /tests/Fixtures/Person/PhoneType.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Fixtures/Person/PhoneType.tpl -------------------------------------------------------------------------------- /tests/Fixtures/PhoneNumber.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Fixtures/PhoneNumber.tpl -------------------------------------------------------------------------------- /tests/Fixtures/Service/SearchService.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Fixtures/Service/SearchService.tpl -------------------------------------------------------------------------------- /tests/Fixtures/Simple.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Fixtures/Simple.tpl -------------------------------------------------------------------------------- /tests/Fixtures/compiler/generator-request-simple.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Fixtures/compiler/generator-request-simple.bin -------------------------------------------------------------------------------- /tests/Generator/BaseGeneratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Generator/BaseGeneratorTest.php -------------------------------------------------------------------------------- /tests/Generator/Message/ReadFieldStatementGeneratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Generator/Message/ReadFieldStatementGeneratorTest.php -------------------------------------------------------------------------------- /tests/Generator/Message/ReadFromGeneratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Generator/Message/ReadFromGeneratorTest.php -------------------------------------------------------------------------------- /tests/Generator/Message/SerializedSizeFieldStatementGeneratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Generator/Message/SerializedSizeFieldStatementGeneratorTest.php -------------------------------------------------------------------------------- /tests/Generator/Message/SerializedSizeGeneratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Generator/Message/SerializedSizeGeneratorTest.php -------------------------------------------------------------------------------- /tests/Generator/Message/WriteFieldStatementGeneratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Generator/Message/WriteFieldStatementGeneratorTest.php -------------------------------------------------------------------------------- /tests/Generator/Message/WriteToGeneratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Generator/Message/WriteToGeneratorTest.php -------------------------------------------------------------------------------- /tests/GeneratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/GeneratorTest.php -------------------------------------------------------------------------------- /tests/OptionsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/OptionsTest.php -------------------------------------------------------------------------------- /tests/Protoc/ProcessBuilderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Protoc/ProcessBuilderTest.php -------------------------------------------------------------------------------- /tests/Protos/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /tests/Resources/proto2/addressbook.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Resources/proto2/addressbook.proto -------------------------------------------------------------------------------- /tests/Resources/proto2/options.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Resources/proto2/options.proto -------------------------------------------------------------------------------- /tests/Resources/proto2/repeated.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Resources/proto2/repeated.proto -------------------------------------------------------------------------------- /tests/Resources/proto2/simple.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Resources/proto2/simple.proto -------------------------------------------------------------------------------- /tests/Resources/proto3/route_guide.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/Resources/proto3/route_guide.proto -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/travis/install-protobuf.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/protobuf-php/protobuf-plugin/HEAD/tests/travis/install-protobuf.sh --------------------------------------------------------------------------------