rrgeng/openligadb

Client library for OpenLigaDB Soap Service

0.0.4 2020-12-08 05:10 UTC

This package is auto-updated.

Last update: 2024-09-09 23:25:40 UTC


README

This library provides a simple wrapper to the OpenLigaDB SOAP service.

Website: https://www.openligadb.de/

Installation

composer require rrgeng/openligadb

Quickstart

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

use \WsdlToPhp\PackageBase\AbstractSoapClientBase;

$options = array(
    AbstractSoapClientBase::WSDL_URL => 'https://www.openligadb.de/Webservices/Sportsdata.asmx?WSDL',
    AbstractSoapClientBase::WSDL_CLASSMAP => \RrGeng\OpenligaDB\ClassMap::get(),
);

$get = new \RrGeng\OpenligaDB\ServiceType\Get($options);

if ($get->GetAvailLeagues(new \RrGeng\OpenligaDB\StructType\GetAvailLeagues()) !== false) {
    print_r($get->getResult());
} else {
    print_r($get->getLastError());
}

API Overview

A full documentation and samples can be found here.

Acknowledgement

https://github.com/WsdlToPhp/PackageGenerator

License

The MIT License (MIT). Please see License File for more information.