grambas/football-data
Larablocks Analysis
grambas/football-data works with any PHP project: the latest release (v1.0, Aug 29, 2016) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Aug 29, 2016)
- 1 downloads a month (needs 10,000)
- 29 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Aug 29, 2016.
- No releases in the last 12 months.
- First released: Aug 29, 2016.
- Monthly downloads: 1.
- 1 open issue on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.
| Install | |
|---|---|
composer require grambas/football-data |
|
| Latest Version: | v1.0 |
| License: | MIT |
| Last Updated: | Aug 14, 2018 |
| Links: | GitHub · Packagist |
:FootballData
football-data.org API Container for Laravel 5.1, 5.2
Requirements
- "guzzlehttp/guzzle": "~6.0"
Install
Via Composer
$ composer require grambas/football-data dev-master
Usage
More about filters, structure and API: football-data.org Documentation
Add your api key to env. file
FootballData_API_KEY=
add to config/app.php
'providers' => [
Grambas\FootballData\FootballDataServiceProvider::class,
]
'aliases' => [
'Football' => Grambas\FootballData\Facades\FootballDataFacade::class,
]
Examples
##COMPETITION/LEAGUE
/**
* List all available competitions.
*
* @param array $filter ['areas' => 'Integer /[0-9]+/']
* @return Collection
*/
Football::getLeagues(array $filter = ['areas' => ''])
/**
* List one particular competition.
*
* @param integer $leagueID
* @param array $filter ['areas' => 'Integer /[0-9]+/']
* @return Collection
*/
Football::getLeague(int $leagueID, array $filter = ['areas' => ''])
/**
* List all teams for a particular competition.
*
* @param integer $leagueID
* @param array $filter ['stage' => 'String /[A-Z]+/']
* @return Collection
*/
Football::getLeagueTeams(int $leagueID, array $filter = ['stage' => ''])
/**
* Show Standings for a particular competition
*
* @param integer $leagueID
* @return Collection
*/
Football::getLeagueStandings(int $leagueID)
/**
* List all matches for a particular competition.
*
* @param integer $leagueID
* @param array $filter ['dateFrom' => 'yyyy-MM-dd', 'dateTo' => 'yyyy-MM-dd', 'stage' => 'String /[A-Z]+/', 'status' => 'SCHEDULED | LIVE | IN_PLAY | PAUSED | FINISHED | POSTPONED | SUSPENDED | CANCELED', 'matchday' => 'Integer /[1-4]*[0-9]', 'group' => '']
* @return Collection
*/
Football::getLeagueMatches(int $leagueID, array $filter = [ 'dateFrom' => '', 'dateTo' => '', 'stage' => '', 'status' => '', 'matchday' => '', 'group' => '' ])
##FIXTURES/MATCHES
/**
* List matches across (a set of) competitions.
*
* @param array $filter [ 'competitions' => 'Integer /[0-9]+/', 'dateFrom' => 'yyyy-MM-dd', 'dateTo' => 'yyyy-MM-dd', 'status' => 'SCHEDULED | LIVE | IN_PLAY | PAUSED | FINISHED | POSTPONED | SUSPENDED | CANCELED' ]
* @return Collection
*/
Football::getMatches(array $filter = [ 'competitions' => '', 'dateFrom' => '', 'dateTo' => '', 'status' => '' ])
/**
* Show one particular match.
*
* @param integer $matchID
* @return Collection
*/
Football::getMatche(int $matchID)
##TEAM
/**
* Show one particular team.
*
* @param integer $teamID
* @return Collection
*/
Football::getTeam(int $teamID)
/**
* Show all matches for a particular team.
*
* @param integer $teamID
* @param array $filter ['dateFrom' => 'yyyy-MM-dd', 'dateTo' => 'yyyy-MM-dd', 'status' => 'SCHEDULED | LIVE | IN_PLAY | PAUSED | FINISHED | POSTPONED | SUSPENDED | CANCELED', 'venue' => 'home|away']
* @return Collection
*/
Football::getMatchesForTeam(int $teamID, array $filter = [ 'dateFrom' => '', 'dateTo' => '', 'status' => '', 'venue' => '' ])
##AREAS
/**
* List all available areas.
*
* @return Collection
*/
Football::getAreas()
/**
* List one particular area.
*
* @param integer $areaID
* @return Collection
*/
Football::getArea(int $areaID)
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Version History
| Version | Released | License |
|---|---|---|
| v1.0 | MIT |