2017 © Pedro Peláez
 

library world-cups-data-response-parser

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

image

astronati/world-cups-data-response-parser

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

  • Monday, June 11, 2018
  • by Andrea Stronati
  • Repository
  • 1 Watchers
  • 0 Stars
  • 53 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Build Status Codacy Badge Latest Stable Version License, (*1)

World Cups Data Response Parser (Stoccoli)

Allows to map responses provided by the World Cups Data API., (*2)

Installation

You can install the library and its dependencies using composer running:, (*3)

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

Usage

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

Example

The following snippet can be helpful:, (*5)

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., (*6)

Development

The environment requires phpunit, that has been already included in the dev-dependencies of the composer.json., (*7)

Dependencies

To install all modules you just need to run following command:, (*8)

$ composer install

Testing

Tests files are created in dedicates folders that replicate the src structure as follows:, (*9)

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

Execute following command to run the tests suite:, (*10)

$ composer test

Run what follows to see the code coverage:, (*11)

$ composer coverage

License

This package is released under the MIT license., (*12)

The Versions

11/06 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

11/06 2018

1.0.1

1.0.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

08/06 2018

1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar Andrea Stronati