Today I have been able to generate valid PHP classes for my proto files using just protoc along with the php-out option. Is the code generation plugin still necessary at all?
Also, it seems that the documentation of this repo is not up to date with the new features of protoc, which leads to confusion.
For example now we can use php_namespace in our proto files and the generated classes will have that namespace without having to use this at all
import "php.proto";
option (php.package) = "Tutorial.AddressBookProtos";