定制 football/football-data 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

football/football-data

Composer 安装命令:

composer require football/football-data

包简介

football-data.org API Container for Laravel 5.5 or ^

README 文档

README

football-data.org API Container for Laravel 5.5 or ^

Requirements

  • "guzzlehttp/guzzle": "~6.0"

Install

Via Composer

$ composer require football/football-data

Usage

More about filters, structure and API in: Football Data Documentation

Add your api key to env. file

FOOTBALLDATA_API_KEY={YOUR_API_KEY}

Add to config/app.php


'providers' => [
    Football\FootballData\FootballDataServiceProvider::class,
]

'aliases' => [
    'Football' => Football\FootballData\Facades\FootballDataFacade::class,
]

Examples

All competitions availables. Can be added optional area filter in this method.

Football::allCompetitions(); 		
Football::allCompetitions(string $area); 		

Matches for a specified competition. Availables all filters in array variable.

Football::allMatches(int $id); 		
Football::allMatches(int $id, array $filters); 		

Matches for a specified team. Availables all filters in array variable.

Football::allMatchesForTeam(int $id);
Football::allMatchesForTeam(int $id, array $filters);

Teams for the especified competition. Can be added optional stage filter in this method.

Football::allTeams(int $id);
Football::allTeams(int $id, string $stage);

A particular competition.

Football::findCompetition($id);

Standing for a specific competition given.

Football::findStandings($id);

Matches with specified filters.

Football::findFilteredMatch(array $filters);

Specific match.

Football::findMatch(int $id);

One team.

Football::findTeam(int $id);

Squad for a team. (This method returns an array instead object).

Football::findTeamSquad(int $id)

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固