GithubHelp home page GithubHelp logo

navitiabundle's Introduction

NavitiaBundle

Requirements

  • php5
  • composer

Installation

1. Update your AppKernel file

# app/AppKernel.php
[...]
new CanalTP\NavitiaBundle\CanalTPNavitiaBundle(),
[...]

2. Add "canaltp/navitia-bundle" in your composer.json file

composer require "canaltp/navitia-bundle"

3. Add configuration in your config.yml

# app/config.yml
canal_tp_navitia:
    configuration:
        url: 'http://api.navitia.io'
        token: YOUR_TOKEN
        format: object

4. Do request

$query = array(
    'api' => 'coverage',
    'parameters' => [
        'region' => 'centre'
    ]
);
$coverages = $this->get('canal_tp.navitia')->call($query);

Suggest

You can use Navitia Profiler to see all request in your profiler.

1. Update your AppKernel file

# app/AppKernel.php
[...]
new CanalTP\NavitiaProfilerBundle\NavitiaProfilerBundle(),
[...]

2. Add "canaltp/navitia-profiler-bundle" in your composer.json file

composer require "canaltp/navitia-profiler-bundle"

3. Overload your config

canal_tp.navitia:
  [...]
  arguments: ['@navitia_profiler']
  [...]

Contributing

  1. Rémy Abi-khalil https://github.com/netmisa
  2. Julien Maulny https://github.com/alcalyn
  3. Ludovic Roche https://github.com/lrocheWB

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.