Download the PHP package mormanski/fpl-lib without Composer
On this page you can find all versions of the php package mormanski/fpl-lib. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mormanski/fpl-lib
More information about mormanski/fpl-lib
Files in mormanski/fpl-lib
Download mormanski/fpl-lib
More information about mormanski/fpl-lib
Files in mormanski/fpl-lib
Vendor mormanski
Package fpl-lib
Short Description PHP Library to access the undocumented https://fantasy.premierleague.com API
License GPL-3.0
Homepage https://github.com/mormanski/fpl-lib
Package fpl-lib
Short Description PHP Library to access the undocumented https://fantasy.premierleague.com API
License GPL-3.0
Homepage https://github.com/mormanski/fpl-lib
Please rate this library. Is it a good library?
Informations about the package fpl-lib
FplLib, PHP library for the Fantasy Premier League API
PHP Library to access the undocumented https://fantasy.premierleague.com API
Installation
Using composer
composer require mormanski/fpl-lib
Using github repository
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/mormanski/fpl-lib"
}
],
"require": {
"mormasnki/fpl-lib": "master"
}
}
Using the library
use Mormanski\FplLib\FplLib;
$fpl = new FplLib();
$client = $fpl->getClient();
API Endpoints
https://fantasy.premierleague.com/api/bootstrap-static
$bootstrapStatic = $client->bootstrapStatic();
https://fantasy.premierleague.com/api/leagues-classic-standings/{leagueId}
$leaguesClassicStandings = $client->leaguesClassicStandings(['leagueId' => '123123']);
https://fantasy.premierleague.com/api/entry/{entryId}
$entry = $client->entry(['entryId' => '1234567']);
https://fantasy.premierleague.com/api/entry/{entryId}/history
$entryHistory = $client->entryHistory(['entryId' => '1234567']);
https://fantasy.premierleague.com/api/entry/{id}/event/{eventId}/picks
$data = $client->entryPicks(['entryId' => $entryId, 'eventId' => $eventId]);
https://fantasy.premierleague.com/api/element-summary/{elementId}
$elementSummary = $client->elementSummary(['elementId' => '123']);
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 => 2 denotes game week 2.
All versions of fpl-lib with dependencies
PHP Build Version
Package Version
The package mormanski/fpl-lib contains the following files
Loading the files please wait ....