Skip to content

Do we still need the plugin to generate php code? #21

@rodrigodiez

Description

@rodrigodiez

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";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions