Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 136 | All time: 9,271 This week: 524 |
Version | License | PHP version | Categories | |||
premier-league-api 1.0 | MIT/X Consortium ... | 5.3 | PHP 5, Games, Web services |
Description | Author | |||
This package is specific mainly for applications used in United Kingdom .
This package can retrieve information about the UK Premier League. Innovation Award
|
<?php |
This is a PHP package for extracting data from http://www.premierleague.com/
You can get team, match and league standings data to be used in your own application.
get all data received from JSON api
getData()
get current season: returns "2015-2016"
getSeason()
get all team details, including badge and standing details
getTeams()
get the team details for the specified team, including badge and standing details
getTeam('Liverpool')
get all matches raw data
getMatches()
get matches data for the specified team, including badges for home and away teams
getMatches('Liverpool')
get teams next match details, including badges for home and away teams
getNextMatch('Liverpool')
get the current league standings
getStandings()
get the current league standings for the specified team
getStanding('Liverpool')
An example of the usage is provided in this repository.
Files (10) |
File | Role | Description | ||
---|---|---|---|---|
src (2 files) | ||||
tests (2 files) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
example.php | Example | Example script | ||
example.png | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (10) | / | src |
File | Role | Description |
---|---|---|
PremierLeague.php | Class | Class source |
Transport.php | Class | Class source |
Files (10) | / | tests |
File | Role | Description |
---|---|---|
PremierLeagueTest.php | Test | Unit test script |
TransportTest.php | Test | Unit test script |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
premier-league-api-2016-03-05.zip 28KB | |
premier-league-api-2016-03-05.tar.gz 28KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.