{"id":16761593,"url":"https://github.com/astronati/php-sports-open-data-response-parser","last_synced_at":"2025-10-13T06:33:33.757Z","repository":{"id":56950014,"uuid":"120919021","full_name":"astronati/php-sports-open-data-response-parser","owner":"astronati","description":"Allows to map responses provided by the Soccer - Sports Open Data API","archived":false,"fork":false,"pushed_at":"2019-11-02T23:57:51.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T06:33:33.452Z","etag":null,"topics":["api","client","market","mashape","model","php7","response","soccer","sports-open-data","sportsopendata"],"latest_commit_sha":null,"homepage":"https://astronati.github.io/php-sports-open-data-response-parser/","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/astronati.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-09T15:00:44.000Z","updated_at":"2019-11-02T23:57:17.000Z","dependencies_parsed_at":"2022-08-21T03:40:17.284Z","dependency_job_id":null,"html_url":"https://github.com/astronati/php-sports-open-data-response-parser","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/astronati/php-sports-open-data-response-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astronati%2Fphp-sports-open-data-response-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astronati%2Fphp-sports-open-data-response-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astronati%2Fphp-sports-open-data-response-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astronati%2Fphp-sports-open-data-response-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astronati","download_url":"https://codeload.github.com/astronati/php-sports-open-data-response-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astronati%2Fphp-sports-open-data-response-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013971,"owners_count":26085429,"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-10-13T02:00:06.723Z","response_time":61,"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","market","mashape","model","php7","response","soccer","sports-open-data","sportsopendata"],"created_at":"2024-10-13T04:42:58.412Z","updated_at":"2025-10-13T06:33:33.728Z","avatar_url":"https://github.com/astronati.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/astronati/php-sports-open-data-response-parser.svg?branch=master)](https://travis-ci.org/astronati/php-sports-open-data-response-parser)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/3caf1d767596416b973fbabc96fef324)](https://www.codacy.com/app/astronati/php-sports-open-data-response-parser?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=astronati/php-sports-open-data-response-parser\u0026amp;utm_campaign=Badge_Grade)\n[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/3caf1d767596416b973fbabc96fef324)](https://www.codacy.com/app/astronati/php-sports-open-data-response-parser?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=astronati/php-sports-open-data-response-parser\u0026utm_campaign=Badge_Coverage)\n[![Latest Stable Version](https://poser.pugx.org/astronati/sports-open-data-response-parser/v/stable)](https://packagist.org/packages/astronati/sports-open-data-response-parser)\n[![License](https://poser.pugx.org/astronati/sports-open-data-response-parser/license)](https://packagist.org/packages/astronati/sports-open-data-response-parser)\n\n# Sports Open Data Response Parser\nAllows to map responses provided by the Sports Open Data API.\n\n## Supported Responses\nNot all responses are currently supported but we are happy to work for you if you need some of them.\n\n**NOTE:** To add another response into the supported list, please file a new issue.\n\nTo do that please file a new [issue](https://github.com/astronati/php-sports-open-data-response-parser/issues/new).\n\n## Installation\nYou can install the library and its dependencies using `composer` running:\n```sh\n$ composer require astronati/sports-open-data-response-parser\n```\n\n### Usage\nThe library allows to return a model per each response and its content (season, round, match, etc...).\n\n##### Example\nThe following snippet can be helpful:\n\n```php\nuse SODRP\\Response\\ResponseParser;\n...\n// Obtain a Response\n$apiResponse = ... // Save this the response from the Sports Open Data API\n$response = ResponseParser::create($apiResponse, ResponseParser::GET_SEASONS_AVAILABLE);\n...\n// Get 2017-2018 season\n$season = $response-\u003efindOneBySlug('17-18');\necho $season-\u003egetStartDate(); // 2017-07-01...\n```\n\nFor more details please take a look at [Response](https://github.com/astronati/php-sports-open-data-response-parser/tree/master/src/Response).\n\n## Development\nThe environment requires [phpunit](https://phpunit.de/), that has been already included in the `dev-dependencies` of the\n`composer.json`.\n\n### Dependencies\nTo install all modules you just need to run following command:\n\n```sh\n$ composer install\n```\n\n### Testing\nTests files are created in dedicates folders that replicate the\n[src](https://github.com/astronati/php-sports-open-data-response-parser/tree/master/src) structure as follows:\n```\n.\n+-- src\n|   +-- [folder-name]\n|   |   +-- [file-name].php\n|   ...\n+-- tests\n|   +-- [folder-name]\n|   |   +-- [file-name]Test.php\n```\n\nExecute following command to run the tests suite:\n```sh\n$ composer test\n```\n\nRun what follows to see the code coverage:\n```sh\n$ composer coverage\n```\n\n## License\nThis package is released under the [MIT license](LICENSE.md).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastronati%2Fphp-sports-open-data-response-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastronati%2Fphp-sports-open-data-response-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastronati%2Fphp-sports-open-data-response-parser/lists"}