PHPackages                             astronati/fantasy-football-quotations-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/fantasy-football-quotations-parser

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

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.

3.2.0(3y ago)44.2k1[4 issues](https://github.com/astronati/php-fantasy-football-quotations-parser/issues)[1 PRs](https://github.com/astronati/php-fantasy-football-quotations-parser/pulls)1MITPHPPHP &gt;=7.4.0

Since Feb 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/astronati/php-fantasy-football-quotations-parser)[ Packagist](https://packagist.org/packages/astronati/fantasy-football-quotations-parser)[ RSS](/packages/astronati-fantasy-football-quotations-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (27)Used By (1)

[![Build Status](https://camo.githubusercontent.com/5b94e9ceabc1726c387a7cae519cc6e1b3048d5262480ed0299aa2ede7a00802/68747470733a2f2f7472617669732d63692e6f72672f617374726f6e6174692f7068702d66616e746173792d666f6f7462616c6c2d71756f746174696f6e732d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/astronati/php-fantasy-football-quotations-parser)[![Dependency Status](https://camo.githubusercontent.com/fc8e20081a55a6cd5084fed92fd02ba2031c8201b8efdcc23770f6eefc1b3fc1/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3538366164323434343035343338303034313765353636322f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/586ad24440543800417e5662)[![Latest Stable Version](https://camo.githubusercontent.com/de6a97d4d5c9abca882fab240baa3508381cca2db6e48c8779561d30fd8b14ad/68747470733a2f2f706f7365722e707567782e6f72672f617374726f6e6174692f66616e746173792d666f6f7462616c6c2d71756f746174696f6e732d7061727365722f762f737461626c65)](https://packagist.org/packages/astronati/fantasy-football-quotations-parser)[![License](https://camo.githubusercontent.com/4735bc18586572e2bb55b17d5545a4780dea8cdc873b49f59ff91beae6575478/68747470733a2f2f706f7365722e707567782e6f72672f617374726f6e6174692f66616e746173792d666f6f7462616c6c2d71756f746174696f6e732d7061727365722f6c6963656e7365)](https://packagist.org/packages/astronati/fantasy-football-quotations-parser)

Fantasy Football Quotations Parser
==================================

[](#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](https://en.wikipedia.org/wiki/Serie_A) and [FIFA World Cup](https://en.wikipedia.org/wiki/FIFA_World_Cup)championship.

Supported Newspapers
--------------------

[](#supported-newspapers)

Currently the "[Gazzetta dello Sport](http://www.gazzetta.it/)" is the only supported newspaper.

**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.

To do that please file a new [issue](https://github.com/astronati/php-fantasy-football-quotations-parser/issues/new).

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

[](#installation)

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

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

### Usage

[](#usage)

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

#### Example

[](#example)

The following snippet is extracted from the [example/sample.php](https://github.com/astronati/php-fantasy-football-quotations-parser/blob/master/example/sample_2017.php)file and shows how parsing an excel file of the season 2017/2018

```
// Obtain a QuotationsParser
$quotationsParser = QuotationsParserFactory::create(GazzettaMapSince2017::class);

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

#### Supported Formats

[](#supported-formats)

Take a look at the Gazzetta [folder](https://github.com/astronati/php-fantasy-football-quotations-parser/tree/master/src/Map/Gazzetta)to know which formats are supported and at the [QuotationsParserFactory](https://github.com/astronati/php-fantasy-football-quotations-parser/blob/master/src/Parser/QuotationsParserFactory.php#L18)to determine which constant using.

#### Quotation(s)

[](#quotations)

A [Quotation](https://github.com/astronati/php-fantasy-football-quotations-parser/blob/master/src/Model/Quotation.php)instance allows to map a single row and to return information as follows:

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

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-fantasy-football-quotations-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

33

—

LowBetter than 75% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~113 days

Recently: every ~342 days

Total

22

Last Release

1364d ago

Major Versions

0.2.1 → 1.0.02017-11-26

1.0.0 → 2.0.02017-12-07

2.4.4 → 3.0.02021-02-19

PHP version history (4 changes)0.1.0PHP &gt;=5.3.0

1.0.0PHP &gt;=7.1.0

2.4.4PHP &gt;=7.2.0

3.0.0PHP &gt;=7.4.0

### 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 (4 commits)")[![danydev](https://avatars.githubusercontent.com/u/2708453?v=4)](https://github.com/danydev "danydev (1 commits)")

---

Tags

fantacalciofantasy-footballfantasyfootballfifaworldcupgazzettanewspaperparserphp7quotationsrussia2018soccer

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/astronati-fantasy-football-quotations-parser/health.svg)

```
[![Health](https://phpackages.com/badges/astronati-fantasy-football-quotations-parser/health.svg)](https://phpackages.com/packages/astronati-fantasy-football-quotations-parser)
```

###  Alternatives

[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)[jms/metadata

Class/method/property metadata management in PHP

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

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[mck89/peast

Peast is PHP library that generates AST for JavaScript code

18934.7M29](/packages/mck89-peast)[ivopetkov/html5-dom-document-php

HTML5 DOMDocument PHP library (extends DOMDocument)

6031.4M49](/packages/ivopetkov-html5-dom-document-php)

PHPackages © 2026

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