2017 © Pedro Peláez
 

library fantasy-football-quotations-parser

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

image

astronati/fantasy-football-quotations-parser

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

  • Saturday, March 31, 2018
  • by Andrea Stronati
  • Repository
  • 1 Watchers
  • 3 Stars
  • 371 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 15 Versions
  • 19 % Grown

The README.md

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

Fantasy Football Quotations Parser

Provides a way to parse files that are provided by main sport newspapers with players quotations after each soccer match of the Serie A and FIFA World Cup championship., (*2)

Supported Newspapers

Currently the "Gazzetta dello Sport" is the only supported newspaper., (*3)

NOTE: To add another newspaper into the supported list, please provide us new kinds of files that need to be parsed in order to update the php package., (*4)

To do that please file a new issue., (*5)

Installation

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

$ composer require astronati/fantasy-football-quotations-parser

Usage

The library allows to return a model per each quotation (player, vote, etc...)., (*7)

Example

The following snippet is extracted from the example/sample.php file and shows how parsing an excel file of the season 2017/2018, (*8)

// Obtain a QuotationsParser
$quotationsParser = QuotationsParserFactory::create(QuotationsParserFactory::FORMAT_GAZZETTA_SINCE_2017);

// Get the quotations, ready to be used
$quotations = $quotationsParser->getQuotations('example/files/2017_quotazioni_gazzetta_02.xls');

Supported Formats

Take a look at the Gazzetta folder to know which formats are supported and at the QuotationsParserFactory to determine which constant using., (*9)

Quotation(s)

A Quotation instance allows to map a single row and to return information as follows:, (*10)

$quotations[0]->isWithoutVote();
$quotations[0]->getGoalsMagicPoints();

Development

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

Dependencies

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

$ composer install

Testing

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

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

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

$ composer test

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

$ composer coverage

License

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

The Versions

31/03 2018

dev-master

9999999-dev

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

31/03 2018

2.2.1

2.2.1.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

30/03 2018

2.2.0

2.2.0.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

27/03 2018

2.1.3

2.1.3.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

27/03 2018

dev-issues/47

dev-issues/47

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

16/12 2017

2.1.2

2.1.2.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

15/12 2017

2.1.1

2.1.1.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

12/12 2017

2.1.0

2.1.0.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

10/12 2017

2.0.1

2.0.1.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

07/12 2017

2.0.0

2.0.0.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship match day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

26/11 2017

1.0.0

1.0.0.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship day.

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar Andrea Stronati

19/08 2017

dev-test

dev-test

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

28/08 2016

0.2.1

0.2.1.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

20/02 2016

0.2.0

0.2.0.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati

14/02 2016

0.1.0

0.1.0.0

This library allows user to retrieve quotations from those documents that are provided from the most important sport newspapers. Quotations contains votes of each soccer player of a specific championship day.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Andrea Stronati