2017 © Pedro Peláez
 

symfony-bundle transport-bundle

Transport API Client Bundle for Symfony2

image

thormeier/transport-bundle

Transport API Client Bundle for Symfony2

  • Wednesday, November 27, 2013
  • by thormeier
  • Repository
  • 3 Watchers
  • 3 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

ThormeierTransportClientBundle

Build Status, (*1)

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., (*2)

<?php

$transportClient = $this->container->get('transport.client');

This bundle provides a new transport.client service that returns an instance of Thormeier\TransportClientBundle\Service\Transport, (*3)

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(),
        // ...
    );
}

The Versions

27/11 2013