2017 © Pedro Peláez
 

library horaires-ratp-sdk

RATP SDK - Retrieve schedules for any given RER (train), Metro, or Tramway stop in real time. The RATP is a public transport operator based in Paris, France.

image

pgrimaud/horaires-ratp-sdk

RATP SDK - Retrieve schedules for any given RER (train), Metro, or Tramway stop in real time. The RATP is a public transport operator based in Paris, France.

  • Thursday, May 17, 2018
  • by pgrimaud
  • Repository
  • 4 Watchers
  • 11 Stars
  • 1,108 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

Horaires RATP SDK

Retrieve real time schedules for any given RER (train), Metro, Tramway or Bus stop in real time., (*1)

You hate SOAP protocol and want to use the official RATP API? Welcome here., (*2)

BEWARE : WSDL contains some "frenglish" such as documentation., (*3)

Translations

This README file is also available in french., (*4)

Requirements

  • Access to the RATP API (see here)
  • PHP >= 5.6
  • Package php-soap (ext-soap extension)

Installation

composer require pgrimaud/horaires-ratp-sdk

Basic usage

Get all stations of a line., (*5)

use Ratp\Api;

$reseau = new \Ratp\Reseau();
$reseau->setCode('metro');

$line = new \Ratp\Line();
$line->setReseau($reseau);
$line->setCode('8');

$station = new \Ratp\Station();
$station->setLine($line);

$stations = new \Ratp\Stations($station);

$api = new Api();

$return = $api->getStations($stations)->getReturn();

foreach ($return->getStations() as $station) {
    /** @var \Ratp\Station $station */
    echo $station->getName() . "\n";
}

You can see more examples here., (*6)

TODO (but la flemme)

  • Unit tests

Copyrights

This project is not affiliated with or endorsed by the RATP., (*7)

Licence

Licensed under the terms of the MIT License., (*8)

The Versions

17/05 2018

dev-master

9999999-dev https://github.com/pgrimaud/horaires-ratp-sdk

RATP SDK - Retrieve schedules for any given RER (train), Metro, or Tramway stop in real time. The RATP is a public transport operator based in Paris, France.

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-soap *

 

The Development Requires

by Pierre Grimaud

17/05 2018

1.1.1

1.1.1.0 https://github.com/pgrimaud/horaires-ratp-sdk

RATP SDK - Retrieve schedules for any given RER (train), Metro, or Tramway stop in real time. The RATP is a public transport operator based in Paris, France.

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-soap *

 

The Development Requires

by Pierre Grimaud

11/10 2017

1.1.0

1.1.0.0 https://github.com/pgrimaud/horaires-ratp-sdk

RATP SDK - Retrieve schedules for any given RER (train), Metro, or Tramway stop in real time. The RATP is a public transport operator based in Paris, France.

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-soap *

 

The Development Requires

by Pierre Grimaud

11/10 2017

1.0.2

1.0.2.0 https://github.com/pgrimaud/horaires-ratp-sdk

RATP SDK - Retrieve schedules for any given RER (train), Metro, or Tramway stop in real time. The RATP is a public transport operator based in Paris, France.

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-soap *

 

The Development Requires

by Pierre Grimaud

06/03 2017

1.0.1

1.0.1.0 https://github.com/pgrimaud/horaires-ratp-sdk

RATP SDK - Retrieve schedules for any given RER (train), Metro, or Tramway stop in real time. The RATP is a public transport operator based in Paris, France.

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-soap *

 

by Pierre Grimaud

02/03 2017

1.0.0

1.0.0.0 https://github.com/pgrimaud/horaires-ratp-sdk

RATP SDK - Retrieve schedules for any given RER (train), Metro, or Tramway stop in real time. The RATP is a public transport operator based in Paris, France.

  Sources   Download

MIT

The Requires

  • php >=5.6
  • ext-soap *

 

by Pierre Grimaud