Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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

License

The library is under MIT.

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages