2017 © Pedro Peláez
 

library knvb-dataservice-api

KNVB Dataservice API

image

fruitcakestudio/knvb-dataservice-api

KNVB Dataservice API

  • Tuesday, August 30, 2016
  • by Barryvdh
  • Repository
  • 5 Watchers
  • 2 Stars
  • 297 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

KNVB Dataservice API Wrapper

Use Composer to install this package ("fruitcakestudio/knvb-dataservice-api": "0.2.x@dev",) and require the autoloader., (*1)

You can use the HttpClient to make requests to the API directly or use the API object to get more abstracted results., (*2)

All objects have public properties, matching the key/value from the API directly., (*3)

See the documentation on http://api.knvbdataservice.nl/v2/, (*4)

Simple example:, (*5)

require_once __DIR__ .'/../vendor/autoload.php';

use KNVB\Dataservice\Api;

// Create a new API instance
$api = new Api($pathname, $key);

// Initialize the club
$club = $api->getClub();

echo $club->getName();
echo $club->getBanner()->getOutput('leaderboard');

$matches = $club->getMatches();
$competitions = $club->getCompetitions();

foreach($club->getTeams() as $team){
    echo $team->getName();
    $results = $team->getResults();
    $schedule = $team->getSchedule();

    foreach($team->getCompetitions() as $competition){
        echo $competition->getName();
        $results = $competition->getResults();
        $schedule = $competition->getSchedule();
        $ranking = $competition->getRanking();
    }
}

The Versions

30/08 2016

dev-master

9999999-dev

KNVB Dataservice API

  Sources   Download

MIT

The Requires

 

sportlink knvb dataservice

30/08 2016

v0.2.2

0.2.2.0

KNVB Dataservice API

  Sources   Download

MIT

The Requires

 

sportlink knvb dataservice

15/02 2016

v0.2.1

0.2.1.0

KNVB Dataservice API

  Sources   Download

MIT

The Requires

 

sportlink knvb dataservice

28/12 2014

v0.2.0

0.2.0.0

KNVB Dataservice API

  Sources   Download

MIT

The Requires

 

sportlink knvb dataservice