{"id":21269748,"url":"https://github.com/b3none/emtapi-client","last_synced_at":"2025-08-01T20:33:34.040Z","repository":{"id":62490881,"uuid":"121650366","full_name":"B3none/emtapi-client","owner":"B3none","description":"East Midlands Trains PHP API Client","archived":false,"fork":false,"pushed_at":"2019-07-04T14:03:59.000Z","size":79,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-11T07:58:51.275Z","etag":null,"topics":["api","client","php","trains-information"],"latest_commit_sha":null,"homepage":"https://b3none.github.io/emtapi-client/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/B3none.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":"2018-02-15T16:10:14.000Z","updated_at":"2019-07-04T14:04:01.000Z","dependencies_parsed_at":"2022-11-02T09:31:33.576Z","dependency_job_id":null,"html_url":"https://github.com/B3none/emtapi-client","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/B3none/emtapi-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3none%2Femtapi-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3none%2Femtapi-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3none%2Femtapi-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3none%2Femtapi-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/B3none","download_url":"https://codeload.github.com/B3none/emtapi-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B3none%2Femtapi-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268291648,"owners_count":24226924,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","client","php","trains-information"],"created_at":"2024-11-21T08:11:08.054Z","updated_at":"2025-08-01T20:33:34.012Z","avatar_url":"https://github.com/B3none.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# emtapi-client\nEast Midlands Trains API Client written in PHP.\n\n# Author\n[B3none](https://b3none.co.uk/) - Developer / Maintainer\n\n# Composer\n```$xslt\ncomposer require b3none/emtapi\n```\n\n# Example use\n```php\n$emtapi = \\B3none\\emtapi\\EMTClient::create();\n$emtapi-\u003ecreateStationsFile();\n$emtapi-\u003egetJourneys(\\B3none\\emtapi\\Station::DERBY, \\B3none\\emtapi\\Station::NOTTINGHAM);\n```\n\n# Example response\n```php\n[\n    'trains' =\u003e [\n        0 =\u003e [\n            'locationname' =\u003e 'Nottingham',\n            'st' =\u003e '16:40',\n            'et' =\u003e 'On time',\n            'cssclass' =\u003e null,\n            'operator' =\u003e 'CrossCountry',\n            'trainid' =\u003e '+eRxw6w7A8UJsGRGIAT5Ag==',\n            'platform' =\u003e '6A',\n            'selecteddets_sta' =\u003e '16:34',\n            'selecteddets_location' =\u003e 'Derby',\n            'selecteddets_length' =\u003e '23 minutes',\n            'selecteddets_prevlength' =\u003e '2 hours, 55 minutes',\n            'callingpoints' =\u003e [\n                '0' =\u003e [\n                    'locationname' =\u003e 'Long Eaton',\n                    'st' =\u003e '16:34',\n                    'et' =\u003e 'On time',\n                    'cssclass' =\u003e null\n                ]\n            ],\n            'previouscallingpoints' =\u003e [\n                0 =\u003e [\n                    'locationname' =\u003e 'Cardiff Central',\n                    'st' =\u003e '13:45',\n                    'et' =\u003e null,\n                    'cssclass' =\u003e 'circle-full',\n                    'at' =\u003e 'On time'\n                ]\n            ]\n        ]\n    ]\n]\n\n```\n\n# Testing\nTo run all of the unit tests run\n```bash\nvendor/bin/phpunit tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3none%2Femtapi-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb3none%2Femtapi-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb3none%2Femtapi-client/lists"}