ilyahoilik/php-gtfs

A PHP library for manipulating with General Transit Feed Specification

v0.2.0 2023-08-23 21:56 UTC

This package is auto-updated.

Last update: 2024-04-23 23:42:02 UTC


README

A PHP library for manipulating with General Transit Feed Specification.

The library supports parsing of Static feeds only at this time. I will be adding builder functionality, as well as support for Realtime feeds later.

First Things First

I would not recommend you using this library because it is unstable, has no tests and interfaces may change. It is in beta stage and under active development now. Stable version will be released later.

You can proceed reading if you ok with it.

Installation

composer require ilyahoilik/php-gtfs

Basic Usage

$feed = new Feed('/Users/ilya/gtfs');

foreach ($feed->routes()->read() as $route) {
    // process routes...
}

Advanced Usage

Will be documented later...