Second problem, the generated file does not have the correct name. As mentioned in the documentation :
The compiler will read the files src/foo.proto and produce the output file: > build/gen/Foo/Bar/MyMessage.php. (https://developers.google.com/protocol-buffers/docs/reference/php-generated ) It should be named MyMessage.php, however, the generated file is named example.pb.php which is a second time not conform to the documentation, neither to the PSR4 specification. Thanks for your help, Adrien -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to firstname.lastname@example.org. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.