PHPackages                             smartilabs/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. smartilabs/phpgtfs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

smartilabs/phpgtfs
==================

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

013PHP

Since Aug 29Pushed 6y agoCompare

[ Source](https://github.com/smartilabs/phpgtfs)[ Packagist](https://packagist.org/packages/smartilabs/phpgtfs)[ RSS](/packages/smartilabs-phpgtfs/feed)WikiDiscussions master Synced 3d 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 \smartilabs\phpgtfs\gtfs\Agencies();

$agency = new \smartilabs\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

```
\smartilabs\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

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 57.1% 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/b4b89fd414bdc5a12a75543759c8353436ec3ba5e75ed51932618fdf798fd337?d=identicon)[smartilabs](/maintainers/smartilabs)

---

Top Contributors

[![smartilabs](https://avatars.githubusercontent.com/u/6381175?v=4)](https://github.com/smartilabs "smartilabs (4 commits)")[![cookieguru](https://avatars.githubusercontent.com/u/1888809?v=4)](https://github.com/cookieguru "cookieguru (3 commits)")

### Embed Badge

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

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

PHPackages © 2026

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