Recommend this page to a friend! |
Download .zip |
Info | Example | View files (10) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2016-03-05 (7 months ago) | Not enough user ratings | Total: 90 | All time: 8,499 This week: 1,068 |
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
|
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 |
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 | / | src |
File | Role | Description |
---|---|---|
PremierLeague.php | Class | Class source |
Transport.php | Class | Class source |
Files | / | tests |
File | Role | Description |
---|---|---|
PremierLeagueTest.php | Test | Unit test script |
TransportTest.php | Test | Unit test script |
premier-league-api-2016-03-05.zip 28KB | |
premier-league-api-2016-03-05.tar.gz 27KB | |
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.