shockedplot7560 / sncf-api
dev-master
2024-09-13 12:39 UTC
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-01-06 18:54:14 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)