2017 © Pedro Peláez
 

library yandex-schedule

PHP Yandex Schedule (rasp) API client

image

sokolnikov911/yandex-schedule

PHP Yandex Schedule (rasp) API client

  • Thursday, April 19, 2018
  • by sokolnikov911
  • Repository
  • 1 Watchers
  • 2 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PHP Yandex Schedule (rasp) API client

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock, (*1)

Russian version of README you can find here: README_RU.md., (*2)

Yandex Schedule (rasp) API client., (*3)

Examples

Retrieving schedule between two stations (for example: New Your airport and Moscow Sheremetyevo), (*4)

$client = new Client('yourApiKeyHere');

echo $client->getScheduleBetweenStations('NYC', 'SVO',
    Client::TRANSPORT_TYPE_PLANE, Client::SYSTEM_IATA);

Retrieving schedule by station (for example: Kyiv-Passazhyrsky railway station), (*5)

echo $client->getScheduleOnStation('2200001', Client::TRANSPORT_TYPE_TRAIN, Client::SYSTEM_EXPRESS);

Retrieving stations list for selected route (for example: train Berdyansk - Kiev), (*6)

echo $client->getListStationsRoute('228P_1_2');

Retrieving carrier information (for example: Turkish Airlines), (*7)

echo $client->getCarrier('TK', Client::SYSTEM_IATA);

Retrieving nearest stations, (*8)

echo $client->getNearestStations('50.440046', '40.4882367', '40');

Retrieving yandex copyright block, (*9)

echo $client->getCopyright();

Switching between data formats (XML and JSON available) and language versions (russian, ukrainian, turkish), (*10)

By default using JSON format and russian language., (*11)

$client->setDataFormat(Client::DATA_FORMAT_XML);
$client->setLanguage(Client::DATA_LANG_UK);

Installing

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version of yandex-schedule, (*12)

php composer.phar require sokolnikov911/yandex-schedule

After installing, you need to require Composer's autoloader:, (*13)

require 'vendor/autoload.php';

You can then later update yandex-schedule using composer:, (*14)

bash composer.phar update, (*15)

Requirements

This client requires at least PHP7 (yeahh, type hinting!) and Guzzle 6., (*16)

License

This library is licensed under the MIT License., (*17)

The Versions

19/04 2018

dev-master

9999999-dev https://github.com/sokolnikov911/yandex-schedule

PHP Yandex Schedule (rasp) API client

  Sources   Download

MIT

The Requires

 

The Development Requires

schedule yandex rasp raspisanie

19/04 2018

v1.0.3

1.0.3.0 https://github.com/sokolnikov911/yandex-schedule

PHP Yandex Schedule (rasp) API client

  Sources   Download

MIT

The Requires

 

The Development Requires

schedule yandex rasp raspisanie

23/12 2017

v1.0.0

1.0.0.0 https://github.com/sokolnikov911/yandex-schedule

PHP Yandex Schedule (rasp) API client

  Sources   Download

MIT

The Requires

 

The Development Requires

schedule yandex rasp raspisanie

27/11 2017

v0.9.4

0.9.4.0 https://github.com/sokolnikov911/yandex-schedule

PHP Yandex Schedule (rasp) API client

  Sources   Download

MIT

The Requires

 

schedule yandex rasp raspisanie