{"id":16672924,"url":"https://github.com/sokolnikov911/yandex-schedule","last_synced_at":"2025-04-09T20:04:26.620Z","repository":{"id":57055141,"uuid":"94709576","full_name":"sokolnikov911/yandex-schedule","owner":"sokolnikov911","description":"Yandex Schedule (rasp) API client.","archived":false,"fork":false,"pushed_at":"2021-06-12T08:24:12.000Z","size":22,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T20:04:19.728Z","etag":null,"topics":["php","php7","schedule","timetable","yandex","yandex-rasp","yandex-raspisanie"],"latest_commit_sha":null,"homepage":null,"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/sokolnikov911.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-18T19:51:21.000Z","updated_at":"2022-02-12T12:33:09.000Z","dependencies_parsed_at":"2022-08-24T05:10:13.860Z","dependency_job_id":null,"html_url":"https://github.com/sokolnikov911/yandex-schedule","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sokolnikov911%2Fyandex-schedule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sokolnikov911%2Fyandex-schedule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sokolnikov911%2Fyandex-schedule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sokolnikov911%2Fyandex-schedule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sokolnikov911","download_url":"https://codeload.github.com/sokolnikov911/yandex-schedule/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"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":["php","php7","schedule","timetable","yandex","yandex-rasp","yandex-raspisanie"],"created_at":"2024-10-12T12:23:37.549Z","updated_at":"2025-04-09T20:04:26.598Z","avatar_url":"https://github.com/sokolnikov911.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP Yandex Schedule (rasp) API client\n=====================================\n\n[![Latest Stable Version](https://poser.pugx.org/sokolnikov911/yandex-schedule/v/stable)](https://packagist.org/packages/sokolnikov911/yandex-schedule)\n[![Total Downloads](https://poser.pugx.org/sokolnikov911/yandex-schedule/downloads)](https://packagist.org/packages/sokolnikov911/yandex-schedule)\n[![Latest Unstable Version](https://poser.pugx.org/sokolnikov911/yandex-schedule/v/unstable)](https://packagist.org/packages/sokolnikov911/yandex-schedule)\n[![License](https://poser.pugx.org/sokolnikov911/yandex-schedule/license)](https://packagist.org/packages/sokolnikov911/yandex-schedule)\n[![composer.lock](https://poser.pugx.org/sokolnikov911/yandex-schedule/composerlock)](https://packagist.org/packages/sokolnikov911/yandex-schedule)\n\n\nRussian version of README you can find here: [README_RU.md](https://github.com/sokolnikov911/yandex-schedule/blob/master/README_RU.md).\n\nYandex Schedule (rasp) API client.\n\n\n## Examples\n\n**Retrieving schedule between two stations (for example: New Your airport and Moscow Sheremetyevo)**\n\n```php\n$client = new Client('yourApiKeyHere');\n\necho $client-\u003egetScheduleBetweenStations('NYC', 'SVO',\n    Client::TRANSPORT_TYPE_PLANE, Client::SYSTEM_IATA);\n```\n\n\n**Retrieving schedule by station (for example: Kyiv-Passazhyrsky railway station)**\n\n```php\necho $client-\u003egetScheduleOnStation('2200001', Client::TRANSPORT_TYPE_TRAIN, Client::SYSTEM_EXPRESS);\n```\n\n**Retrieving stations list for selected route (for example: train Berdyansk - Kiev)**\n\n```php\necho $client-\u003egetListStationsRoute('228P_1_2');\n```\n\n**Retrieving carrier information (for example: Turkish Airlines)**\n\n```php\necho $client-\u003egetCarrier('TK', Client::SYSTEM_IATA);\n```\n\n**Retrieving nearest stations**\n\n```php\necho $client-\u003egetNearestStations('50.440046', '40.4882367', '40');\n```\n\n**Retrieving yandex copyright block**\n\n```php\necho $client-\u003egetCopyright();\n```\n\n\n**Switching between data formats (XML and JSON available) and language versions (russian, ukrainian, turkish)**\n\nBy default using JSON format and russian language.\n\n\n```php\n$client-\u003esetDataFormat(Client::DATA_FORMAT_XML);\n$client-\u003esetLanguage(Client::DATA_LANG_UK);\n```\n\n\n\n## Installing\n\n\n```bash\n# Install Composer\ncurl -sS https://getcomposer.org/installer | php\n```\n\nNext, run the Composer command to install the latest stable version of **yandex-schedule**\n\n```bash\nphp composer.phar require sokolnikov911/yandex-schedule\n```\n\nAfter installing, you need to require Composer's autoloader:\n\n```php\nrequire 'vendor/autoload.php';\n```\n\nYou can then later update **yandex-schedule** using composer:\n\n ```bash\ncomposer.phar update\n ```\n \n \n## Requirements\n\nThis client requires at least PHP7 (yeahh, type hinting!) and [Guzzle](https://github.com/guzzle/guzzle) 6.\n\n\n## License\n\nThis library is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsokolnikov911%2Fyandex-schedule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsokolnikov911%2Fyandex-schedule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsokolnikov911%2Fyandex-schedule/lists"}