RATP SDK - Retrieve schedules for any given RER (train), Metro, or Tramway stop in real time
Switch branches/tags
Clone or download
Latest commit a5520e2 May 17, 2018
Failed to load latest commit information.
data update wsdl Oct 11, 2017
examples fix cs Oct 11, 2017
src fix cs Oct 11, 2017
.gitignore Remove lock file May 17, 2018
LICENSE Initial commit Feb 7, 2017
README-FR.md readme again Mar 1, 2017
README.md readme again Mar 1, 2017
composer.json add php cs fixer Oct 11, 2017


Horaires RATP SDK

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

You hate SOAP protocol and want to use the official RATP API? Welcome here.

BEWARE : WSDL contains some "frenglish" such as documentation.


This README file is also available in french.


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


composer require pgrimaud/horaires-ratp-sdk

Basic usage

Get all stations of a line.

use Ratp\Api;

$reseau = new \Ratp\Reseau();

$line = new \Ratp\Line();

$station = new \Ratp\Station();

$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.

TODO (but la flemme)

  • Unit tests


This project is not affiliated with or endorsed by the RATP.


Licensed under the terms of the MIT License.