Developed with love by KnpLabs Hire us for your project!
18

transport-client-bundle

by thormeier

Symfony2 bundle to query the OpenData Transport API

ThormeierTransportClientBundle

Build Status

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(),
        // ...
    );
}
Copyright (c) 2012 Thormeier

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
  • Refactor exception messages
    By thormeier, 3 years ago
  • Add API error handling
    By thormeier, 3 years ago
  • Fix version in installation guide
    By thormeier, 3 years ago
  • Small comment improvements
    By thormeier, 4 years ago
  • Move data providers into own class and TestUtils from functional tests into Tests/
    By thormeier, 4 years ago
  • Beautified output of autoloader path
    By thormeier, 4 years ago
  • Remove unnecessary parameters
    By thormeier, 4 years ago
  • Modified URL to Travis CI build information
    By thormeier, 4 years ago
  • Minor changes in readme file
    By thormeier, 4 years ago
  • Replace GitHub require method with normal composer method
    By thormeier, 4 years ago
  • Cleanup
    By thormeier, 4 years ago
  • Minor beautifications in coding style
    By DukeTh, 4 years ago
  • Add comments to try/catch blocks around API calls
    By DukeTh, 4 years ago
  • Replace the local API with fixtures
    By DukeTh, 4 years ago
  • Fixes for Travis CI config
    By DukeTh, 4 years ago
  • Add set up of local instance of the transport API for functional tests in Travis CI configuration
    By DukeTh, 4 years ago
  • Merge pull request #1 from liip-forks/cleanups
    By thormeier, 4 years ago
  • tweaked package name
    By lsmith77, 4 years ago
  • tabs to spaces
    By lsmith77, 4 years ago
  • tweaked composer.json and travis-ci setup
    By lsmith77, 4 years ago
  • ignore composer.lock, vendor and the app cache dir
    By lsmith77, 4 years ago
  • use more appropriate Exception base classes
    By lsmith77, 4 years ago
  • added MIT license
    By lsmith77, 4 years ago
  • renamed Entity to Model
    By lsmith77, 4 years ago
  • removed unused Configuration class
    By lsmith77, 4 years ago
  • remove composer.lock
    By lsmith77, 4 years ago
  • Remove eclipse project files
    By DukeTh, 4 years ago
  • Add Travis CI build status image to readme file
    By DukeTh, 4 years ago
  • Fix PHPUnit call in Travis CI configuration
    By DukeTh, 4 years ago
  • Remove unnecessary eclipse settings
    By DukeTh, 4 years ago