2017 © Pedro Peláez
 

library navitiaio-api-component

PHP library which makes curl calls to NavitiaIo API.

image

canaltp/navitiaio-api-component

PHP library which makes curl calls to NavitiaIo API.

  • Friday, January 6, 2017
  • by packagistctp
  • Repository
  • 35 Watchers
  • 1 Stars
  • 721 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 6 % Grown

The README.md

NavitiaIoApi Component

PHP library which makes curl calls to NavitiaIo API., (*1)

Composer

Install via composer, (*2)

``` js { "require": { "canaltp/navitiaio-api-component": "1.x" } }, (*3)



## Usage Instanciate NavitiaIoService as a plain PHP object: ``` php $navitiaIoApiUrl = 'http://navitia.local/'; $user = 'my_user' $password = '********' // Instanciating api $navitiaIoApiApi = new CanalTP\NavitiaIoApiComponent\NavitiaIoApiService($navitiaIoApiUrl, $user, $password); // Get users $response = $navitiaIoApiApi->getUsers(); foreach ($data->users as $user) { // Do something here }

See full NavitiaIoApi class., (*4)

Testing

Mock Guzzle client:, (*5)

``` php $navitiaIoApiUrl = 'http://navitiaIoApi.dev.canaltp.fr/v0/'; $user = 'my_user' $password = '********', (*6)

$navitiaIoApiApi = new CanalTP\NavitiaIoApiComponent\NavitiaIoApiService($navitiaIoApiUrl, $user, $password);, (*7)

// Creating GuzzleHttp\Client mock..., (*8)

$navitiaIoApiApi->setClient($mockedClient); ```, (*9)

License

This project is under GPL-3.0 License., (*10)

The Versions

06/01 2017

dev-master

9999999-dev https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio

06/01 2017

1.6.1

1.6.1.0 https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio

06/01 2017

dev-change-require-guzzle

dev-change-require-guzzle https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio

26/10 2015

1.6.0

1.6.0.0 https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio

14/10 2015

1.5.1

1.5.1.0 https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio

12/10 2015

1.5.0

1.5.0.0 https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio

25/09 2015

1.4.0

1.4.0.0 https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio

24/09 2015

1.3.0

1.3.0.0 https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio

21/09 2015

1.2.0

1.2.0.0 https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio

11/09 2015

1.1.0

1.1.0.0 https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio

11/09 2015

1.0.1

1.0.1.0 https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio

14/08 2015

1.0.0

1.0.0.0 https://github.com/CanalTP/NavitiaIoApiComponent

PHP library which makes curl calls to NavitiaIo API.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

api php navitiaio