PHPackages                             livecore-interactive/fpl-api - 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. livecore-interactive/fpl-api

ActiveLibrary[API Development](/categories/api)

livecore-interactive/fpl-api
============================

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

03PHP

Since Sep 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/livecore-interactive/fpl-api)[ Packagist](https://packagist.org/packages/livecore-interactive/fpl-api)[ RSS](/packages/livecore-interactive-fpl-api/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)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 livecore-interactive/fpl-api

```

### Using github repository

[](#using-github-repository)

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/livecore-interactive/fpl-api"
        }
    ],
    "require": {
        "livecore-interactive/fpl-api": "master"
    }
}

```

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

[](#using-the-library)

```
use LivecoreInteractive\FplApi\FplApi;

$fpl = new FplApi();
$client = $fpl->getClient();
$auth = $fpl->getAuthClient();

////////////////////log in api
$auth->login([
	'password'=>'password',
	'login'=>'your-email',
	'redirect_uri'=>'https://fantasy.premierleague.com/',
	'app'=>'plfpl-web'
]);

```

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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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://www.gravatar.com/avatar/af0be490a1dd5801665f8de60269223a05897859b030225173f451d05ab98303?d=identicon)[LivecoreSystems](/maintainers/LivecoreSystems)

---

Top Contributors

[![livecore-interactive](https://avatars.githubusercontent.com/u/10208327?v=4)](https://github.com/livecore-interactive "livecore-interactive (4 commits)")

### Embed Badge

![Health badge](/badges/livecore-interactive-fpl-api/health.svg)

```
[![Health](https://phpackages.com/badges/livecore-interactive-fpl-api/health.svg)](https://phpackages.com/packages/livecore-interactive-fpl-api)
```

###  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)
