PHPackages                             pgrimaud/horaires-ratp-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. pgrimaud/horaires-ratp-sdk

ActiveLibrary[API Development](/categories/api)

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.

1.2.0(7y ago)232.8k5MITPHPPHP &gt;=5.6

Since Mar 2Pushed 6y ago4 watchersCompare

[ Source](https://github.com/pgrimaud/horaires-ratp-sdk)[ Packagist](https://packagist.org/packages/pgrimaud/horaires-ratp-sdk)[ Docs](https://github.com/pgrimaud/horaires-ratp-sdk)[ RSS](/packages/pgrimaud-horaires-ratp-sdk/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Horaires RATP SDK
=================

[](#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.**

Translations
------------

[](#translations)

This README file is also available in [french](https://github.com/pgrimaud/horaires-ratp-sdk/blob/master/README-FR.md).

Requirements
------------

[](#requirements)

- Access to the RATP API (see [here](https://data.ratp.fr/explore/dataset/horaires-temps-reel/))
- PHP &gt;= 5.6
- Package php-soap (ext-soap extension)

Installation
------------

[](#installation)

```
composer require pgrimaud/horaires-ratp-sdk

```

Basic usage
-----------

[](#basic-usage)

Get all stations of a line.

```
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](https://github.com/pgrimaud/horaires-ratp-sdk/tree/master/examples).

TODO (but la flemme)
--------------------

[](#todo-but-la-flemme)

- Unit tests

Copyrights
----------

[](#copyrights)

This project is not affiliated with or endorsed by the [RATP](http://www.ratp.fr).

Licence
-------

[](#licence)

Licensed under the terms of the MIT License.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~163 days

Recently: every ~203 days

Total

6

Last Release

2589d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1866496?v=4)[Pierre Grimaud](/maintainers/pgrimaud)[@pgrimaud](https://github.com/pgrimaud)

---

Top Contributors

[![pgrimaud](https://avatars.githubusercontent.com/u/1866496?v=4)](https://github.com/pgrimaud "pgrimaud (6 commits)")

---

Tags

apihorairesparisphpratpreal-timesdkxml

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/pgrimaud-horaires-ratp-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/pgrimaud-horaires-ratp-sdk/health.svg)](https://phpackages.com/packages/pgrimaud-horaires-ratp-sdk)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24216.2M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
