PHPackages                             mysportsfeeds/mysportsfeeds-php - 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. mysportsfeeds/mysportsfeeds-php

ActiveLibrary[API Development](/categories/api)

mysportsfeeds/mysportsfeeds-php
===============================

PHP wrapper for the MySportsFeeds sports data API.

2.1.0(3y ago)889812[3 issues](https://github.com/MySportsFeeds/mysportsfeeds-php/issues)[1 PRs](https://github.com/MySportsFeeds/mysportsfeeds-php/pulls)MITPHPPHP &gt;=5.6.0

Since Jun 18Pushed 2y ago5 watchersCompare

[ Source](https://github.com/MySportsFeeds/mysportsfeeds-php)[ Packagist](https://packagist.org/packages/mysportsfeeds/mysportsfeeds-php)[ RSS](/packages/mysportsfeeds-mysportsfeeds-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

mysportsfeeds-php
=================

[](#mysportsfeeds-php)

MySportsFeeds PHP Wrapper brought to you by [@MySportsFeeds](https://twitter.com/MySportsFeeds).

Makes use of the [MySportsFeeds API](https://www.mysportsfeeds.com) - a flexible, developer-friendly Sports Data API.

Free for Non-Commercial Use.

\##Install

Using composer, simply add it to the "require" section of your composer.json:

```
"require": {
    "mysportsfeeds/mysportsfeeds-php": ">=2.1.0"
}

```

If you haven't signed up for API access, do so here

\##Usage

Create main MySportsFeeds object with API version as input parameter

For v1.x feed requests (free non-commercial access available):

```
use MySportsFeeds\MySportsFeeds;

$msf = new MySportsFeeds("1.2");

```

For v2.0 feed requests (donation required for non-commercial access):

```
use MySportsFeeds\MySportsFeeds;

$msf = new MySportsFeeds("2.0");

```

Authenticate for v1.x (uses your MySportsFeeds account password)

```
$msf->authenticate("", "");

```

Authenticate for v2.0 (simply uses "MYSPORTSFEEDS" as password)

```
$msf->authenticate("", "MYSPORTSFEEDS");

```

Start making requests, specifying in this order: $league, $season, $feed, $format, and any other applicable params for the feed. See example.php for sample usage.

Example (v1.x): Get all NBA 2016-2017 regular season gamelogs for Stephen Curry, in JSON format

```
    $data = $msf->getData('nba', '2016-2017-regular', 'player_gamelogs', 'json', 'player=stephen-curry');

```

Example (v1.x): Get all NFL 2015-2016 regular season seasonal stats totals for all Dallas Cowboys players, in XML format

```
    $data = $msf->getData('nfl', '2015-2016-regular', 'cumulative_player_stats', 'xml', 'team=dallas-cowboys');

```

Example (v1.x): Get full game schedule for the MLB 2016 playoff season, in CSV format

```
    $data = $msf->getData('mlb', '2016-playoff', 'full_game_schedule', 'csv');

```

Example (v2.0): Get all NBA 2016-2017 regular season gamelogs for Stephen Curry, in JSON format

```
    $data = $msf->getData('nba', '2016-2017-regular', 'seasonal_player_gamelogs', 'json', 'player=stephen-curry');

```

Example (v2.0): Get all NFL 2015 regular season stats totals for all Dallas Cowboys players, in XML format

```
    $data = $msf->getData('nfl', '2015-regular', 'seasonal_player_stats', 'xml', 'team=dallas-cowboys');

```

Example (v2.0): Get full game schedule and scores for the MLB 2016 playoff season, in CSV format

```
    $data = $msf->getData('mlb', '2016-playoff', 'seasonal_games', 'csv');

```

That's it! Returned data is also stored locally under "results/" by default, in appropriately named files.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~676 days

Total

4

Last Release

1223d ago

Major Versions

0.1.0 → 1.0.02018-01-30

1.0.0 → 2.0.02018-08-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/71734669137c10b59d2bdaa881e40bd14aeb89f563d70ae6300d44fbbb69876b?d=identicon)[brad.barkhouse](/maintainers/brad.barkhouse)

---

Top Contributors

[![bradbarkhouse](https://avatars.githubusercontent.com/u/15825146?v=4)](https://github.com/bradbarkhouse "bradbarkhouse (20 commits)")[![ok6245](https://avatars.githubusercontent.com/u/34556115?v=4)](https://github.com/ok6245 "ok6245 (9 commits)")[![rcompton78](https://avatars.githubusercontent.com/u/44351?v=4)](https://github.com/rcompton78 "rcompton78 (2 commits)")[![after2400](https://avatars.githubusercontent.com/u/17775963?v=4)](https://github.com/after2400 "after2400 (1 commits)")

---

Tags

dfsmlbnbanba-statsnba-stats-apinflnhlnhl-apisports-datasports-stats

### Embed Badge

![Health badge](/badges/mysportsfeeds-mysportsfeeds-php/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

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

GitHub API v3 client

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

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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