Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP and proto2 #3623

Open
mvdstam opened this issue Sep 12, 2017 · 28 comments
Open

PHP and proto2 #3623

mvdstam opened this issue Sep 12, 2017 · 28 comments

Comments

@mvdstam
Copy link

mvdstam commented Sep 12, 2017

Hi,

At the time of writing, the PHP implementation of protobuf doesn't support files written in proto2 format. Are there any plans on making the PHP implementation backwards compatible with proto2 files?

Thanks!

@TeBoring
Copy link
Contributor

TeBoring commented Sep 12, 2017 via email

@mvdstam
Copy link
Author

mvdstam commented Sep 12, 2017

Thank you @TeBoring, looking forward to it. 😃

@TeBoring TeBoring added the php label Sep 20, 2017
@leearmstrong
Copy link

Any updates on this at all?

@vahidrk
Copy link

vahidrk commented Apr 24, 2018

Any updates?

@xfxyjwf
Copy link
Contributor

xfxyjwf commented Apr 24, 2018

The proto2 support work hasn't started yet as far as I can tell. Given that there are still quite some feature gaps and bugs in proto3 support, I wouldn't expect the proto2 work to start any time soon.

@mosquitood
Copy link

looking forward to it

2 similar comments
@fujidomoe
Copy link

looking forward to it

@atbtavares
Copy link

looking forward to it

@robeyre
Copy link

robeyre commented May 22, 2018

Yes please

@DrayChou
Copy link

looking forward to it

1 similar comment
@DemonTPx
Copy link

looking forward to it

@rauanmayemir
Copy link

Any update on this?

Since all other packages are practically abandoned, there's currently no way to generate PHP classes from proto2.

@dongqiaoershao
Copy link

Any updates?

@dignwei
Copy link

dignwei commented Aug 30, 2019

Any updates?

2 similar comments
@Duncan00
Copy link

Any updates?

@UnderTreeTech
Copy link

Any updates?

@znau
Copy link

znau commented Sep 4, 2020

Urgent need

@HunterXuan
Copy link

Any updates?

@anight
Copy link
Contributor

anight commented Oct 28, 2020

Here is my attempt to add support for proto2
https://github.com/anight/protobuf/tree/proto2_support
For now only protobuf.so is supported, protobuf-php/protobuf is not.
It works with grpc too.

@mjbaldwin
Copy link

I too seem to need this.

But I was wondering if anyone can suggest any alternatives. Essentially, I need to access the Google-standard transit protobuf GTFS Realtime Protobuf from a PHP server.

As you can see, it's proto2 (and will not compile as proto3).

Does anyone have any idea what the current solution is to use proto2 in PHP?

@barbeau
Copy link

barbeau commented Jan 19, 2021

@mjbaldwin There were PHP bindings as part of the gtfs-realtime-bindings project here:
https://github.com/MobilityData/gtfs-realtime-bindings-php

You can see how the bindings were generated here:
https://github.com/MobilityData/gtfs-realtime-bindings-php/blob/master/UPDATING.md

...but I made the decision to drop support because of the fact that PHP wasn't supported by the official Google protocol buffer tooling - it was too much to keep up with a variety of languages using 3rd party tooling.

So, I too would like to see official support for PHP with proto2.

@kiler129
Copy link

This is truly unfortunate as protobuf3 is not compatible with protobuf2 when consuming external resources. While most things translate e.g. the default enum values are a big pain and impossible to resolve from the client's perspective.

@shaqaruden
Copy link

shaqaruden commented Aug 1, 2023

How is proto2 not supported yet. IT'S BEEN 6 YEARS!

Copy link

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

@github-actions github-actions bot added the inactive Denotes the issue/PR has not seen activity in the last 90 days. label Jun 16, 2024
@kiler129
Copy link

It should be active as the support is still not there.

@github-actions github-actions bot removed the inactive Denotes the issue/PR has not seen activity in the last 90 days. label Jun 17, 2024
Copy link

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago. This issue will be closed and archived after 14 additional days without activity.

@github-actions github-actions bot added the inactive Denotes the issue/PR has not seen activity in the last 90 days. label Sep 16, 2024
@killerbees19
Copy link

This issue is still active, please go away github-actions bot. 🙃

@github-actions github-actions bot removed the inactive Denotes the issue/PR has not seen activity in the last 90 days. label Sep 17, 2024
@k0mar12
Copy link

k0mar12 commented Oct 23, 2024

Screenshot 2024-10-23 at 11 50 13
7 years, still waiting :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests