thormeier/transport-bundle
Composer 安装命令:
composer require thormeier/transport-bundle
包简介
Transport API Client Bundle for Symfony2
README 文档
README
Introduction
This bundle provides simple access to the OpenData Transport API in Symfony2. The Transport API provides Swiss public transport data, that is converted into instances of Doctrine-like entity classes within this bundle for further usage.
<?php
$transportClient = $this->container->get('transport.client');
This bundle provides a new transport.client service that returns an instance of Thormeier\TransportClientBundle\Service\Transport
Installation
Step 1: Composer require
$ php composer.phar require "thormeier/transport-bundle":"1.0.*"
Step2: Enable the bundle in the kernel
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Thormeier\TransportClientBundle\ThormeierTransportClientBundle(),
// ...
);
}
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-09-02