PHPackages                             astronati/sports-open-data-response-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. astronati/sports-open-data-response-parser

ActiveLibrary[API Development](/categories/api)

astronati/sports-open-data-response-parser
==========================================

Allows to map responses provided by the Sports Open Data API.

1.2.2(6y ago)02.0kMITPHPPHP &gt;=7.1.0CI failing

Since Feb 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/astronati/php-sports-open-data-response-parser)[ Packagist](https://packagist.org/packages/astronati/sports-open-data-response-parser)[ RSS](/packages/astronati-sports-open-data-response-parser/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (10)Used By (0)

[![Build Status](https://camo.githubusercontent.com/14e0ee180e872c737004609bfa0dd21135ac95a50c1dc3a77d1e2d6ad51c1d54/68747470733a2f2f7472617669732d63692e6f72672f617374726f6e6174692f7068702d73706f7274732d6f70656e2d646174612d726573706f6e73652d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/astronati/php-sports-open-data-response-parser)[![Codacy Badge](https://camo.githubusercontent.com/035dfe6184065f83db8402fde5b4e6d98b4fb9e4bc7571958d5717292bebfc4b/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3363616631643736373539363431366239373366626162633936666566333234)](https://www.codacy.com/app/astronati/php-sports-open-data-response-parser?utm_source=github.com&utm_medium=referral&utm_content=astronati/php-sports-open-data-response-parser&utm_campaign=Badge_Grade)[![Codacy Badge](https://camo.githubusercontent.com/5abb00646526073c016d0e8ecaf7a8ca699a7c32570dddcd8630604324f5d24b/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f436f7665726167652f3363616631643736373539363431366239373366626162633936666566333234)](https://www.codacy.com/app/astronati/php-sports-open-data-response-parser?utm_source=github.com&utm_medium=referral&utm_content=astronati/php-sports-open-data-response-parser&utm_campaign=Badge_Coverage)[![Latest Stable Version](https://camo.githubusercontent.com/b126be308b227902e36a29cab1ad1ad6eef65870897afe77fb33c6cbafc07927/68747470733a2f2f706f7365722e707567782e6f72672f617374726f6e6174692f73706f7274732d6f70656e2d646174612d726573706f6e73652d7061727365722f762f737461626c65)](https://packagist.org/packages/astronati/sports-open-data-response-parser)[![License](https://camo.githubusercontent.com/7c99f92a4eae14ea49534d33abbd309d49d1bc93de78e52930b04d3907015de1/68747470733a2f2f706f7365722e707567782e6f72672f617374726f6e6174692f73706f7274732d6f70656e2d646174612d726573706f6e73652d7061727365722f6c6963656e7365)](https://packagist.org/packages/astronati/sports-open-data-response-parser)

Sports Open Data Response Parser
================================

[](#sports-open-data-response-parser)

Allows to map responses provided by the Sports Open Data API.

Supported Responses
-------------------

[](#supported-responses)

Not all responses are currently supported but we are happy to work for you if you need some of them.

**NOTE:** To add another response into the supported list, please file a new issue.

To do that please file a new [issue](https://github.com/astronati/php-sports-open-data-response-parser/issues/new).

Installation
------------

[](#installation)

You can install the library and its dependencies using `composer` running:

```
$ composer require astronati/sports-open-data-response-parser
```

### Usage

[](#usage)

The library allows to return a model per each response and its content (season, round, match, etc...).

##### Example

[](#example)

The following snippet can be helpful:

```
use SODRP\Response\ResponseParser;
...
// Obtain a Response
$apiResponse = ... // Save this the response from the Sports Open Data API
$response = ResponseParser::create($apiResponse, ResponseParser::GET_SEASONS_AVAILABLE);
...
// Get 2017-2018 season
$season = $response->findOneBySlug('17-18');
echo $season->getStartDate(); // 2017-07-01...
```

For more details please take a look at [Response](https://github.com/astronati/php-sports-open-data-response-parser/tree/master/src/Response).

Development
-----------

[](#development)

The environment requires [phpunit](https://phpunit.de/), that has been already included in the `dev-dependencies` of the `composer.json`.

### Dependencies

[](#dependencies)

To install all modules you just need to run following command:

```
$ composer install
```

### Testing

[](#testing)

Tests files are created in dedicates folders that replicate the [src](https://github.com/astronati/php-sports-open-data-response-parser/tree/master/src) structure as follows:

```
.
+-- src
|   +-- [folder-name]
|   |   +-- [file-name].php
|   ...
+-- tests
|   +-- [folder-name]
|   |   +-- [file-name]Test.php

```

Execute following command to run the tests suite:

```
$ composer test
```

Run what follows to see the code coverage:

```
$ composer coverage
```

License
-------

[](#license)

This package is released under the [MIT license](LICENSE.md).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~89 days

Recently: every ~136 days

Total

8

Last Release

2382d ago

Major Versions

0.2.0 → 1.0.02018-03-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d2221aad4b4045aea529521b9879f8980ff7798239b23e5bc10c0f2a09f8260?d=identicon)[Andrea Stronati](/maintainers/Andrea%20Stronati)

---

Top Contributors

[![astronati](https://avatars.githubusercontent.com/u/2708431?v=4)](https://github.com/astronati "astronati (1 commits)")

---

Tags

apiclientmarketmashapemodelphp7responsesoccersports-open-datasportsopendata

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/astronati-sports-open-data-response-parser/health.svg)

```
[![Health](https://phpackages.com/badges/astronati-sports-open-data-response-parser/health.svg)](https://phpackages.com/packages/astronati-sports-open-data-response-parser)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
