shockedplot7560 / sncf-api
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/shockedplot7560/sncf-api
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.9
- kevinrob/guzzle-cache-middleware: ^5.1
- phpfastcache/phpfastcache: ^9.2
- psr/http-client: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- phpstan/phpstan: ^1.12
This package is auto-updated.
Last update: 2025-10-06 20:19:51 UTC
README
Fully object-oriented PHP client for the SNCF API.
Installation
composer require shockedplot7560/sncf-api
Description
This client is a wrapper around the SNCF API. It allows you to easily interact with the API and get the data you need.
Currently, the client supports the following endpoints:
journeys: Get the journeys between two stationsplaces: Get the places that match a query
Requirements
- PHP 8.1 or higher
- API key from SNCF (you can get one here)