Download the PHP package kbsali/gsm-api without Composer
On this page you can find all versions of the php package kbsali/gsm-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kbsali/gsm-api
More information about kbsali/gsm-api
Files in kbsali/gsm-api
Package gsm-api
Short Description GlobalSportsMedia (GSM) API client
License MIT
Homepage https://github.com/kbsali/php-gsm-api
Informations about the package gsm-api
PHP GSM API
A simple PHP5 Object Oriented wrapper for GlobalSportsMedia (GSM) XML API.
See http://client.globalsportsmedia.com/documentation
Features
- Follows PSR-0 conventions and coding standard: autoload friendly
- API entry points implementation state :
- OK soccer
- OK am_football
- OK aus_football
- OK baseball
- OK basketball
- OK cricket
- OK golf
- OK handball
- OK hockey
- OK motorsports
- OK rugby
- OK tennis
- OK volleyball
Requirements
- PHP >= 5.4 with cURL extension,
Install
Through composer, simply run :
Basic usage of php-gsm-api
client
All the methods return a SimpleXmlElement object or throw an Exception in case of error. Following the basic workflow documented in globalsportsmedia.com for working with Soccer data :
You can control if you want to cache the requests to the API (get_seasons() is not likely to change everyday):
- to never cache the request
- to cache the request undefinitely (ie. until to clean the cache)
- to cache requests for the current day
If you wish to cache the requests you will have to specifiy the cache directory through
All versions of gsm-api with dependencies
ext-curl Version *