andinger / openligadb-api
PHP API to OpenLigaDB
Installs: 2 635
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=5.5.0
- ext-soap: *
This package is not auto-updated.
Last update: 2025-01-18 21:47:13 UTC
README
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.
Installation
composer require andinger/openligadb-api
Usage
1. Create a new Client-Object
// 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);
2. Call the methods
$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
Further Information
See http://www.openligadb.de for further information