PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of vince  >  PHP Premier League API  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Premier League API
Retrieve information about the UK Premier League
Author: By
Last change: typo correction
Added screenshot
Date: 6 years ago
Size: 1,225 bytes
 

Contents

Class file image Download

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.

For more information send a message to info at phpclasses dot org.