PHP Classes
elePHPant
Icontem

PHP Premier League API: Retrieve information about the UK Premier League

Recommend this page to a friend!
  Info   View files Example   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-03-05 (7 months ago) RSS 2.0 feedNot enough user ratingsTotal: 90 All time: 8,499 This week: 1,068Up
Version License PHP version Categories
premier-league-api 1.0MIT/X Consortium ...5.3PHP 5, Games, Web services
Description Author
This package is specific mainly for applications used in United Kingdom United Kingdom .

This package can retrieve information about the UK Premier League.

It can send the HTTP requests to the Premier League Web site API to retrieve several types of details.

Currently it can retrieve the league teams, get single team details, get the details of matches, get the next match of a team, and get the standings of teams.

Innovation Award
PHP Programming Innovation award nominee
March 2016
Number 13


Prize: PHP Tools for Visual Studio Personal license
Many fans are interested in following UK Premier League of football.

This class can retrieve all the details of the games and rankings of this league using the UK Premier League API.

Manuel Lemos
Picture of vince
  Performance   Level  
Name: vince <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Innovation award
Innovation award
Nominee: 1x

Details

PHP Premier League API

Introduction

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.

Usage

  • 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')

Example

Example usage

An example of the usage is provided in this repository.

  Files folder image Files  
File Role Description
Files folder imagesrc (2 files)
Files folder imagetests (2 files)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file example.php Example Example script
Accessible without login Image file example.png Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file PremierLeague.php Class Class source
  Plain text file Transport.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file PremierLeagueTest.php Test Unit test script
  Accessible without login Plain text file TransportTest.php Test Unit test script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:90
This week:0
All time:8,499
This week:1,068Up