PHPackages                             lowa/gtfs-realtime-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lowa/gtfs-realtime-php

ActiveLibrary

lowa/gtfs-realtime-php
======================

GTFS-Realtime library for PHP

v1.0.0(2y ago)29.0k↓26.9%1Unlicense

Since Feb 8Pushed 2y agoCompare

[ Source](https://github.com/MaisClement/gtfs-realtime-php)[ Packagist](https://packagist.org/packages/lowa/gtfs-realtime-php)[ RSS](/packages/lowa-gtfs-realtime-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

ℹ️ This is an updated version of [gtfs-realtime-php By @sebastianknopf](https://github.com/sebastianknopf/gtfs-realtime-php) and [gtfs-realtime-proto3 By @brians-code](https://github.com/brians-code/gtfs-realtime-proto3).

GTFS Realtime PHP
=================

[](#gtfs-realtime-php)

Simple wrapper for GTFS-Realtime in PHP based on Google's [Protocol Buffers](https://github.com/protocolbuffers/protobuf-php).

Usage
-----

[](#usage)

The library is kept simple to use for creating and parsing GTFS-Realtime feeds in PHP applications. See the simple examples for [creating](/examples/create_message.php) and [parsing](/examples/parse_message.php) a feed message.

### Composer Installation

[](#composer-installation)

In your application project root run

```
composer require lowa/gtfs-realtime-php

```

to install the package and all dependencies. This command will load all packages and update your autoloader to use the package.

Include `[MainDirectory]/vendor/autoload.php` in the head section of your application code to use all required classes in simple way.

### Explaination

[](#explaination)

This is a simple wrapper for GTFS-Realtime in PHP modified to be compatible with Google library. The gtfs-realtime.proto was edited to match with proto3 definitions.

- Step 1: Remove all 'optional' labels since all fields are optional
- Step 2: Remove all 'required' labels since all fields are optional
- Step 3: Remove all 'extensions' ranges, see
- Step 4: Remove all explicit default values, see
- Step 5: Set first value in all enums to PROTO3\_DEFAULT\_\[VARNAME\] = 0 to supply implicit default value, see

Then, using [protobuf](https://github.com/protocolbuffers/protobuf) you can generate all the files of this repo.

License
-------

[](#license)

The library package is licensed under "The Unlicense" - For the simple reason that there's nothing in this code at all, which you could not create for yourself using Google's protoc-Compiler and the corresponding definition file for GTFS-Realtime.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

830d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1304dddec2876de0875b8ee6cde1af0f93fabba8a71e6660917bb0542ea2a54?d=identicon)[Lowa](/maintainers/Lowa)

---

Top Contributors

[![sebastianknopf](https://avatars.githubusercontent.com/u/43302817?v=4)](https://github.com/sebastianknopf "sebastianknopf (7 commits)")[![MaisClement](https://avatars.githubusercontent.com/u/43115848?v=4)](https://github.com/MaisClement "MaisClement (2 commits)")

---

Tags

gtfs-realtime

### Embed Badge

![Health badge](/badges/lowa-gtfs-realtime-php/health.svg)

```
[![Health](https://phpackages.com/badges/lowa-gtfs-realtime-php/health.svg)](https://phpackages.com/packages/lowa-gtfs-realtime-php)
```

###  Alternatives

[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/grpc-gcp

gRPC GCP library for channel management

18497.8M3](/packages/google-grpc-gcp)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[googleads/google-ads-php

Google Ads API client for PHP

3497.6M9](/packages/googleads-google-ads-php)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

81733.7k](/packages/flow-php-flow)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
