Download the PHP package fruitcakestudio/knkv-webservice-api without Composer
On this page you can find all versions of the php package fruitcakestudio/knkv-webservice-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fruitcakestudio/knkv-webservice-api
More information about fruitcakestudio/knkv-webservice-api
Files in fruitcakestudio/knkv-webservice-api
Package knkv-webservice-api
Short Description KNKV Webservice API
License MIT
Informations about the package knkv-webservice-api
KNKV Webservice API Wrapper
Use Composer to install this package ("fruitcakestudio/knkv-webservice-api": "0.1.x@dev",
) and require the autoloader.
You can use the HttpClient to make requests to the API directly or use the API object to get more abstracted results.
All objects have public properties, matching the key/value from the API directly. getProgam, getResults and getStandings can be called on the API directly, or on a team. The Team ID is then passed on automatically.
See the documentation on http://www.onswebbond.nl/userfiles/knkv/webservice.zip
You need a subscription to the Onsweb Clubplugin for KNKV: http://www.onswebbond.nl/
Note: the API limits unique requests to 1 per hour. See Cache usage below.
Note: the
page
parameter on getResults doesn't seem to be working yet.
Simple example:
Cache
You can use the cache component from Laravel (illuminate/cache). By default, an ArrayCache is used, which only caches for the current request. If you want to use a FileCache for example, composer require "illuminate/filesystem": "~4.0
and do the following:
When using Laravel, you can use Cache::getStore()
to get the Cache store.
All versions of knkv-webservice-api with dependencies
guzzlehttp/guzzle Version ~5.0
netresearch/jsonmapper Version 0.4.x
illuminate/cache Version ~4.0