PHPackages                             konradbaron/fantasydata - 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. konradbaron/fantasydata

ActivePackage[API Development](/categories/api)

konradbaron/fantasydata
=======================

PHP library for the Fantasy Data API

344PHP

Since Aug 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/konradbaron/php-fantasydata)[ Packagist](https://packagist.org/packages/konradbaron/fantasydata)[ RSS](/packages/konradbaron-fantasydata/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP-FantasyData
===============

[](#php-fantasydata)

PHP-FantasyData is a PHP library for the [FantasyData API version 3](http://fantasydata.com/). This library currently only contains wrappers for the Full NFL section, and the NBA Scores section of the API. Other sections are planned to be added in the future.

The API currently returns your data in two formats; JSON and XML.

Requirements
------------

[](#requirements)

This library requires the use of Composer.

```
composer require konradbaron/fantasydata:dev-master

```

You must first register an account to receive an API key from [FantasyData Portal](http://fantasydata.com/). There is a free trial option, which limits the amount of API calls to 1K per month.

Example Usage
-------------

[](#example-usage)

**NFL**

```
    use KonradBaron\FantasyData\FantasyDataNFLPlayByPlay;
    $fd = new FantasyDataNFLPlayByPlay('YOUR_API_KEY');
    echo $fd->playByPlay('json', '2016REG', 8, 'WAS');
```

**NBA**

```
    use KonradBaron\FantasyData\FantasyDataNBAScores;
    $fd = new FantasyDataNBAScores('YOUR_API_KEY');
    echo $fd->schedules('json', '2016');
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10345462?v=4)[Konrad Baron](/maintainers/konradbaron)[@konradbaron](https://github.com/konradbaron)

---

Top Contributors

[![konradbaron](https://avatars.githubusercontent.com/u/10345462?v=4)](https://github.com/konradbaron "konradbaron (12 commits)")

### Embed Badge

![Health badge](/badges/konradbaron-fantasydata/health.svg)

```
[![Health](https://phpackages.com/badges/konradbaron-fantasydata/health.svg)](https://phpackages.com/packages/konradbaron-fantasydata)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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