gtfs-realtime-bindings-php | Provides PHP classes | Networking library
kandi X-RAY | gtfs-realtime-bindings-php Summary
kandi X-RAY | gtfs-realtime-bindings-php Summary
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.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gtfs-realtime-bindings-php
gtfs-realtime-bindings-php Key Features
gtfs-realtime-bindings-php Examples and Code Snippets
Community Discussions
Trending Discussions on gtfs-realtime-bindings-php
QUESTION
I am having problem installing Google GTFS-Realtime bindings library.
When running composer require google/gtfs-realtime-bindings:^0.0.2
, I get the following error :
ANSWER
Answered 2019-Feb-22 at 06:46Yes, your assessment is correct. gtfs-realtime-bindings requires centraldesktop/protobuf-php:0.5.* which has an unfortunate requirement on symfony/console. In later version they changed it to be a dev-requirement only (even then only console 3.x).
I don't think you can downgrade your symfony/console version safely. Instead what I would do is create a Pull Request to gtfs-realtime-bindings that bumps the minimum required version of centraldesktop/protobuf-php to ^1.0
. This might require other changes to the code as there might have been breaking changes between 0.5 to 1.0. Unfortunately centraldesktop/Protobuf-PHP does not provide an upgrade guide, so you have to figure out if anything breaks via tests or code inspections in your IDE. Luckily gtfs-realtime-bindings is tested and seems to be rather small, so it should be manageable to do this upgrade even if you don't know all the internals. Plus, when you open a pull request that is work in progress maintainers will likely support you.
Another option would be to search for alternative implementations of the bindings or writing your own.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gtfs-realtime-bindings-php
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page