PHPackages                             mormanski/fpl-lib - 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. mormanski/fpl-lib

ActiveLibrary[API Development](/categories/api)

mormanski/fpl-lib
=================

PHP Library to access the undocumented https://fantasy.premierleague.com API

0.3.1(3y ago)3116[1 PRs](https://github.com/mormanski/fpl-lib/pulls)GPL-3.0PHP

Since Oct 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mormanski/fpl-lib)[ Packagist](https://packagist.org/packages/mormanski/fpl-lib)[ Docs](https://github.com/mormanski/fpl-lib)[ RSS](/packages/mormanski-fpl-lib/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (2)Versions (12)Used By (0)

FplLib, PHP library for the Fantasy Premier League API
------------------------------------------------------

[](#fpllib-php-library-for-the-fantasy-premier-league-api)

PHP Library to access the undocumented  API

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

[](#installation)

### Using composer

[](#using-composer)

```
composer require mormanski/fpl-lib

```

### Using github repository

[](#using-github-repository)

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/mormanski/fpl-lib"
        }
    ],
    "require": {
        "mormasnki/fpl-lib": "master"
    }
}

```

Using the library
-----------------

[](#using-the-library)

```
use Mormanski\FplLib\FplLib;

$fpl = new FplLib();
$client = $fpl->getClient();

```

API Endpoints
-------------

[](#api-endpoints)

```
$bootstrapStatic = $client->bootstrapStatic();

```

[https://fantasy.premierleague.com/api/leagues-classic-standings/{leagueId}](https://fantasy.premierleague.com/api/leagues-classic-standings/%7BleagueId%7D)

```
$leaguesClassicStandings = $client->leaguesClassicStandings(['leagueId' => '123123']);

```

[https://fantasy.premierleague.com/api/entry/{entryId}](https://fantasy.premierleague.com/api/entry/%7BentryId%7D)

```
$entry = $client->entry(['entryId' => '1234567']);

```

[https://fantasy.premierleague.com/api/entry/{entryId}/history](https://fantasy.premierleague.com/api/entry/%7BentryId%7D/history)

```
$entryHistory = $client->entryHistory(['entryId' => '1234567']);

```

[https://fantasy.premierleague.com/api/entry/{id}/event/{eventId}/picks](https://fantasy.premierleague.com/api/entry/%7Bid%7D/event/%7BeventId%7D/picks)

```
$data = $client->entryPicks(['entryId' => $entryId, 'eventId' => $eventId]);

```

[https://fantasy.premierleague.com/api/element-summary/{elementId}](https://fantasy.premierleague.com/api/element-summary/%7BelementId%7D)

```
$elementSummary = $client->elementSummary(['elementId' => '123']);

```

Terminology
-----------

[](#terminology)

- An entry is equivalent to a contestant in the competition
- An element is equivalent to a player
- An event is equivalent to a game week, for instance eventId =&gt; 2 denotes game week 2.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 92.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 ~214 days

Recently: every ~262 days

Total

9

Last Release

1416d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38b1f1d93441a569590c161493afebc4d17d9f2fffcc84e8dd4a6fc9b8ef4d98?d=identicon)[mormanski](/maintainers/mormanski)

---

Top Contributors

[![mormanski](https://avatars.githubusercontent.com/u/2650916?v=4)](https://github.com/mormanski "mormanski (37 commits)")[![darmordls](https://avatars.githubusercontent.com/u/4963387?v=4)](https://github.com/darmordls "darmordls (3 commits)")

---

Tags

phpapilibraryeplfantasy-footballPremier league

### Embed Badge

![Health badge](/badges/mormanski-fpl-lib/health.svg)

```
[![Health](https://phpackages.com/badges/mormanski-fpl-lib/health.svg)](https://phpackages.com/packages/mormanski-fpl-lib)
```

###  Alternatives

[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[getjump/vk

Library for work with API Vk.com

20048.5k](/packages/getjump-vk)[fabian-beiner/todoist-php-api-library

A PHP client library that provides a native interface to the official Todoist REST API.

4810.8k](/packages/fabian-beiner-todoist-php-api-library)

PHPackages © 2026

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