protocolbuffers.github.io icon indicating copy to clipboard operation
protocolbuffers.github.io copied to clipboard

Issue 50 - Add documentation for PHP namespace options

Open nigelhough opened this issue 1 year ago • 1 comments

This pull request directly relates to https://github.com/protocolbuffers/protocolbuffers.github.io/issues/50

This expands the documentation for PHP Code Generation specifically documenting functionality added in the following two pull requests to protocolbuffers/protobuf.

  • https://github.com/protocolbuffers/protobuf/pull/3162
  • https://github.com/protocolbuffers/protobuf/pull/4609

For testing and validating the documentation the following .proto files was used

MyMessage.proto


syntax = "proto3";

package foo.bar;

option php_namespace = "baz\\qux";

option php_metadata_namespace = "Foo";

message MyMessage {}

and the following compiler command

protoc --php_out=output MyMessage.proto

nigelhough avatar Apr 11 '23 15:04 nigelhough