{"id":19333179,"url":"https://github.com/pgrimaud/horaires-ratp-sdk","last_synced_at":"2025-06-27T08:33:49.830Z","repository":{"id":57038404,"uuid":"81249288","full_name":"pgrimaud/horaires-ratp-sdk","owner":"pgrimaud","description":"RATP SDK - Retrieve schedules for any given RER (train), Metro, or Tramway stop in real time","archived":false,"fork":false,"pushed_at":"2019-10-23T14:55:22.000Z","size":54,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-21T06:00:23.856Z","etag":null,"topics":["api","horaires","paris","php","ratp","real-time","sdk","xml"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgrimaud.png","metadata":{"files":{"readme":"README-FR.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"pgrimaud","custom":"https://www.paypal.me/grimaudpierre"}},"created_at":"2017-02-07T20:10:01.000Z","updated_at":"2025-03-12T01:04:31.000Z","dependencies_parsed_at":"2022-08-24T00:51:08.796Z","dependency_job_id":null,"html_url":"https://github.com/pgrimaud/horaires-ratp-sdk","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pgrimaud/horaires-ratp-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgrimaud%2Fhoraires-ratp-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgrimaud%2Fhoraires-ratp-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgrimaud%2Fhoraires-ratp-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgrimaud%2Fhoraires-ratp-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgrimaud","download_url":"https://codeload.github.com/pgrimaud/horaires-ratp-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgrimaud%2Fhoraires-ratp-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262222893,"owners_count":23277528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","horaires","paris","php","ratp","real-time","sdk","xml"],"created_at":"2024-11-10T02:50:31.940Z","updated_at":"2025-06-27T08:33:49.786Z","avatar_url":"https://github.com/pgrimaud.png","language":"PHP","funding_links":["https://github.com/sponsors/pgrimaud","https://www.paypal.me/grimaudpierre"],"categories":[],"sub_categories":[],"readme":"# Horaires RATP SDK\n\nRécupérer les horaires en temps réel pour tout arrêt RER (train), métro, tramway ou bus du réseau RATP.\n\nVous détestez le protocole SOAP et souhaitez utiliser l'API RATP officielle ? Bienvenue.\n\n**ATTENTION : le WSDL contient quelques termes \"*franglish*\".**\n\n## Traductions\n\nCe README est aussi disponible en [anglais](https://github.com/pgrimaud/horaires-ratp-sdk/blob/master/README.md).\n\n## Prérequis\n\n - Accès à l'API RATP (voir [ici](https://data.ratp.fr/explore/dataset/horaires-temps-reel/))\n - PHP \u003e= 5.6\n - Librairie php-soap (ext-soap extension)\n\n## Installation\n\n```\ncomposer require pgrimaud/horaires-ratp-sdk\n```\n\n## Exemple d'utilisation\n\nRécupérer toutes les stations d'une ligne.\n\n```php\nuse Ratp\\Api;\n\n$reseau = new \\Ratp\\Reseau();\n$reseau-\u003esetCode('metro');\n\n$line = new \\Ratp\\Line();\n$line-\u003esetReseau($reseau);\n$line-\u003esetCode('8');\n\n$station = new \\Ratp\\Station();\n$station-\u003esetLine($line);\n\n$stations = new \\Ratp\\Stations($station);\n\n$api = new Api();\n\n$return = $api-\u003egetStations($stations)-\u003egetReturn();\n\nforeach ($return-\u003egetStations() as $station) {\n    /** @var \\Ratp\\Station $station */\n    echo $station-\u003egetName() . \"\\n\";\n}\n```\n\nPlus d'exemples sont disponibles [ici](https://github.com/pgrimaud/horaires-ratp-sdk/tree/master/examples).\n\n\n## TODO (mais la flemme)\n\n-  Tests unitaires\n\n## Copyrights\n\nCe projet n'est pas affilié à la [RATP](http://www.ratp.fr).\n\n## Licence\n\nLicence MIT.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgrimaud%2Fhoraires-ratp-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgrimaud%2Fhoraires-ratp-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgrimaud%2Fhoraires-ratp-sdk/lists"}