PHPackages                             astronati/world-cups-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/world-cups-data-response-parser

ActiveLibrary[API Development](/categories/api)

astronati/world-cups-data-response-parser
=========================================

Allows to map responses provided by the World Cups Data Data API (stroccoli).

1.0.1(7y ago)01.7k1MITPHPPHP &gt;=7.1.0

Since Jun 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/astronati/php-world-cups-data-response-parser)[ Packagist](https://packagist.org/packages/astronati/world-cups-data-response-parser)[ RSS](/packages/astronati-world-cups-data-response-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (1)

[![Build Status](https://camo.githubusercontent.com/31f36468d5c92d4ada123f0e32bf9d4f94966cc001cf299159eba5bb1b41f2a7/68747470733a2f2f7472617669732d63692e6f72672f617374726f6e6174692f7068702d776f726c642d637570732d646174612d726573706f6e73652d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/astronati/php-world-cups-data-response-parser)[![Codacy Badge](https://camo.githubusercontent.com/007219350a23fa52e736878fc8f34fe0b9831b9c330ad36146add0bc35249127/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6235386665333363343432363464353639343666623132333331313030613665)](https://www.codacy.com/app/astronati/php-world-cups-data-response-parser?utm_source=github.com&utm_medium=referral&utm_content=astronati/php-world-cups-data-response-parser&utm_campaign=Badge_Grade)[![Latest Stable Version](https://camo.githubusercontent.com/7df9c135f43fe6d2cd46e2f64ba99dbedb9dd2c608033808c0ddceb557f0ed7b/68747470733a2f2f706f7365722e707567782e6f72672f617374726f6e6174692f776f726c642d637570732d646174612d726573706f6e73652d7061727365722f762f737461626c65)](https://packagist.org/packages/astronati/world-cups-data-response-parser)[![License](https://camo.githubusercontent.com/b3ca96cffbe67951fba7be9def507770bada57434cbcb9125ad6de4e46f2abcd/68747470733a2f2f706f7365722e707567782e6f72672f617374726f6e6174692f776f726c642d637570732d646174612d726573706f6e73652d7061727365722f6c6963656e7365)](https://packagist.org/packages/astronati/world-cups-data-response-parser)

World Cups Data Response Parser (Stoccoli)
==========================================

[](#world-cups-data-response-parser-stoccoli)

Allows to map responses provided by the World Cups Data API.

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

[](#installation)

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

```
$ composer require astronati/world-cups-data-response-parser
```

### Usage

[](#usage)

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

##### Example

[](#example)

The following snippet can be helpful:

```
use WCDRP\Response\ResponseParser;
...
// Obtain a Response
$apiResponse = ... // Save this the response from the World Cups Data API
$response = ResponseParser::create($apiResponse);
...
// Get first round
$round = $response->getRounds()[0];
echo $round->getNumber(); // 1...
```

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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

2

Last Release

2889d ago

### Community

Maintainers

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

---

Tags

apifantasy-footballmarketshapephp7pluginstroccoliworld-cup-2018

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

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

GitHub API v3 client

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

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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