MobilityData / gtfs-realtime-bindings

Language bindings generated from the GTFS Realtime protocol buffer spec for popular languages.
Apache License 2.0
373 stars 129 forks source link

Anyone using PHP bindings? #46

Closed barbeau closed 5 years ago

barbeau commented 5 years ago

Is anyone in the community using the PHP bindings in https://github.com/google/gtfs-realtime-bindings-php?

I'm hitting some issues regenerating them from the gtfs-realtime.proto, as it seems proto2 files aren't officially supported by Google's protobuf compiler. More at https://github.com/google/gtfs-realtime-bindings-php/pull/4.

weeg commented 5 years ago

Hi! I am planning to use PHP bindings in about a month. But as I can see proto2 is not supported. Is there any workaround for this?

barbeau commented 5 years ago

@weeg You can use the existing legacy PHP bindings that are in the repo, but they don't have any of the new fields created after circa 2017. I don't know of any workaround going forward for proto2 support, but I'm open to ideas if anyone else does. Otherwise, the PHP bindings will likely be deprecated going forward (i.e., not regenerated for new .proto fields) until there is official support for proto2.

barbeau commented 5 years ago

For anyone looking for PHP bindings in the future - we'd be glad to host links to 3rd party PHP bindings, but at this point we are deprecating support for the PHP bindings in this library until the Google protobuf compiler officially supports proto2 for PHP.

ethanpooley commented 3 years ago

We are using the PHP bindings at TransitScreen. We use this package, re-hosted from Google and using an updated protobuf version: https://packagist.org/packages/jkapron/gtfs-realtime-bindings