Download the PHP package mburger/gtfs-realtime-bindings without Composer
On this page you can find all versions of the php package mburger/gtfs-realtime-bindings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mburger/gtfs-realtime-bindings
More information about mburger/gtfs-realtime-bindings
Files in mburger/gtfs-realtime-bindings
Package gtfs-realtime-bindings
Short Description PHP classes generated from the GTFS-realtime protocol buffer specification.
License Apache-2.0
Homepage https://github.com/google/gtfs-realtime-bindings-php
Informations about the package gtfs-realtime-bindings
PHP GTFS-realtime Language Bindings (PHP 7&8)
NOTE: This is a fork of the original package with updated depenedencies for the use with newer PHP versions.
Provides PHP classes generated from the GTFS-realtime Protocol Buffer specification. These classes will allow you to parse a binary Protocol Buffer GTFS-realtime data feed into PHP objects.
For bindings in other languages, see the gtfs-realtime-bindings project.
Add the Dependency
To use the gtfs-realtime-bindings-php
classes in your own project, you need
to first install the Packagist Composer
package. To do
so, add a dependency in your composer.json
file:
Where x.y.z
is the latest release version:
Then update your Composer dependencies:
Example Code
The following code snippet demonstrates downloading a GTFS-realtime data feed from a particular URL, parsing it as a FeedMessage (the root type of the GTFS-realtime schema), and iterating over the results.
For more details on the naming conventions for the PHP classes generated from the gtfs-realtime.proto,