PHPackages                             astronati/sportmediaset-api-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. astronati/sportmediaset-api-response-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

astronati/sportmediaset-api-response-parser
===========================================

Allows to map responses provided by any SportMediaset API endpoint

1.2.5(4y ago)03.1kMITPHPPHP &gt;=7.2.5

Since Aug 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/astronati/php-sportmediaset-api-response-parser)[ Packagist](https://packagist.org/packages/astronati/sportmediaset-api-response-parser)[ RSS](/packages/astronati-sportmediaset-api-response-parser/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (29)Used By (0)

[![Build Status](https://camo.githubusercontent.com/007f77996e72a1f628882dd438fc7d34e78f8d4cbf30f1317129a0a712324a81/68747470733a2f2f7472617669732d63692e6f72672f617374726f6e6174692f7068702d73706f72746d656469617365742d6170692d726573706f6e73652d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/astronati/php-sportmediaset-api-response-parser)[![Latest Stable Version](https://camo.githubusercontent.com/fbd23f4467b76ccef057b269ce5fce149a6f63afebfeb9e8e477b9cc2d9030ed/68747470733a2f2f706f7365722e707567782e6f72672f617374726f6e6174692f73706f72746d656469617365742d6170692d726573706f6e73652d7061727365722f762f737461626c65)](https://packagist.org/packages/astronati/sportmediaset-api-response-parser)[![License](https://camo.githubusercontent.com/d2f4a01a2137b9f31b0fae5aaff3c778b0f3b419c482889b53a0bdd45f424f20/68747470733a2f2f706f7365722e707567782e6f72672f617374726f6e6174692f73706f72746d656469617365742d6170692d726573706f6e73652d7061727365722f6c6963656e7365)](https://packagist.org/packages/astronati/sportmediaset-api-response-parser)

SportMediaset Response Parser
=============================

[](#sportmediaset-response-parser)

Allows to map responses provided by any SportMediaset API endpoint.

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-php-sportmediaset-api-response-parser/issues/new).

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

[](#installation)

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

```
$ composer require astronati/sportmediaset-response-parser
```

### Usage

[](#usage)

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

##### Example

[](#example)

The following snippet can be helpful:

```
use SMRP\Response\Parser\ResponseParser;
...
// Obtain a Response
$apiResponse = ... // Save this the response from the SportMediaset API
$response = ResponseParser::create($apiResponse, ResponseParser::GET_TEAM_FORMATION);
...
// Get Juventus formation
$formation = $response->getTeamFormationModel();
echo $formation->getCoach(); // Sarri
```

For more details please take a look at [Response](https://github.com/astronati/php-sportmediaset-api-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-sportmediaset-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

Popularity16

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 ~35 days

Recently: every ~114 days

Total

27

Last Release

1524d ago

Major Versions

0.10.0 → 1.1.02020-02-23

PHP version history (2 changes)0.1.0PHP &gt;=7.1.0

1.2.0PHP &gt;=7.2.5

### 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 (28 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/astronati-sportmediaset-api-response-parser/health.svg)

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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