PHPackages                             cookieguru/phpgtfs - 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. cookieguru/phpgtfs

ActiveLibrary

cookieguru/phpgtfs
==================

Data modeling and object writer for General Transit Feed Specification (GTFS)

6111.4k↓35.9%4PHP

Since Dec 1Pushed 3y ago3 watchersCompare

[ Source](https://github.com/cookieguru/phpgtfs)[ Packagist](https://packagist.org/packages/cookieguru/phpgtfs)[ RSS](/packages/cookieguru-phpgtfs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

phpgtfs
=======

[](#phpgtfs)

`phpgtfs` is a data modeling and object writer for [General Transit Feed Specification (GTFS)](https://developers.google.com/transit/gtfs/GTFS).

Installation
------------

[](#installation)

Install with [Composer](https://getcomposer.org/)

Usage
-----

[](#usage)

```
$agencies = new \cookieguru\phpgtfs\gtfs\Agencies();

$agency = new \cookieguru\phpgtfs\model\Agency();
$agency->agency_name = 'Demo agency';
$agency->agency_url = 'http://localhost/';
$agency->agency_timezone = 'America/Los_Angeles';
$agency->agency_lang = 'en';

$agencies->add($agency);

```

Then simply

```
\cookieguru\phpgtfs\Writer::write('gtfs/', $agencies);

```

and an `agencies.txt` file will be placed in the `gtfs` folder. Note that even unspecified columns will be written:

```
agency_id,agency_name,agency_url,agency_timezone,agency_lang,agency_phone,agency_fare_url
,"Demo agency",http://localhost/,America/Los_Angeles,en,,

```

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/78d4a390a0d4c550525b383e842347174aa53e984bf5a72dcd01f7b9e7e55991?d=identicon)[cookieguru](/maintainers/cookieguru)

---

Top Contributors

[![cookieguru](https://avatars.githubusercontent.com/u/1888809?v=4)](https://github.com/cookieguru "cookieguru (3 commits)")[![iliyan-handzhiyski](https://avatars.githubusercontent.com/u/105852682?v=4)](https://github.com/iliyan-handzhiyski "iliyan-handzhiyski (1 commits)")

---

Tags

data-modelgtfsphp

### Embed Badge

![Health badge](/badges/cookieguru-phpgtfs/health.svg)

```
[![Health](https://phpackages.com/badges/cookieguru-phpgtfs/health.svg)](https://phpackages.com/packages/cookieguru-phpgtfs)
```

PHPackages © 2026

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