PHP code example of sokolnikov911 / yandex-schedule
1. Go to this page and download the library: Download sokolnikov911/yandex-schedule library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sokolnikov911 / yandex-schedule example snippets
$client = new Client('yourApiKeyHere');
echo $client->getScheduleBetweenStations('NYC', 'SVO',
Client::TRANSPORT_TYPE_PLANE, Client::SYSTEM_IATA);