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
$ php composer.phar require "thormeier/transport-bundle":"1.0.*"
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Thormeier\TransportClientBundle\ThormeierTransportClientBundle(),
// ...
);
}