承接 cookieguru/phpgtfs 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cookieguru/phpgtfs

Composer 安装命令:

composer require cookieguru/phpgtfs

包简介

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

README 文档

README

phpgtfs is a data modeling and object writer for General Transit Feed Specification (GTFS).

Installation

Install with Composer

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

MIT

统计信息

  • 总下载量: 109.37k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-03