Wraps the SOAP-based API of http://www.openligadb.de/ and returns easy-to-use PHP-Objects Currently not all provided methods are supported by this little project. Feel free to fork and add the missing methods by a pull-request.
composer require andinger/openligadb-api
// use the standard wsdl url
$client = new Andinger\OpenLigaDbApi\Client();
// use another wsdl url
$client = new Andinger\OpenLigaDbApi\Client('https://my.custom.wsdl.url.com/...wsdl');
// use additional SoapClient-Config
// @see http://php.net/manual/de/soapclient.soapclient.php for further information
$options = [
'local_cert' => 'cert_key.pem'
];
$client = new Andinger\OpenLigaDbApi\Client('https://my.custom.wsdl.url.com/...wsdl', $options);
$client->getAvailableLeagues()
$client->getAvailableSports()
$client->getAvailableGroups($league, $season)
$client->getAvailableLeaguesBySport($sportId)
$client->getGoalsByMatch($matchId)
$client->getGoalsByLeagueSeason($league, $season)
$client->getCurrentGroup($league)
$client->getMatchesByGroupLeagueSeason($groupOrderId, $league, $season)
$client->getMatchesByLeagueSeason($league, $season)
$client->getTeamsByLeagueSeason($league, $season)
$client->getMatchesByTeams($teamId1, $teamId2)
All methods in the Client-Class are documented
See http://www.openligadb.de for further information