承接 mormanski/fpl-lib 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mormanski/fpl-lib

Composer 安装命令:

composer require mormanski/fpl-lib

包简介

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

README 文档

README

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.

统计信息

  • 总下载量: 116
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2017-10-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固