thormeier / transport-bundle
Transport API Client Bundle for Symfony2
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- symfony/framework-bundle: 2.*
- symfony/yaml: 2.*
Requires (Dev)
- jms/serializer-bundle: @stable
- sensio/buzz-bundle: dev-master
- symfony/browser-kit: 2.*
- symfony/finder: 2.*
- symfony/form: 2.*
This package is auto-updated.
Last update: 2024-11-17 19:54:42 UTC
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(),
// ...
);
}