Yii2 client for Betsson Sportsbook API
PHP5 with SOAP client.
The preferred way to install this extension is through composer.
composer require --prefer-dist drsdre/yii2-betssonsports "*"
require section of your
You need to setup the client as application component:
'components' => [ 'betssonsportsApi' => [ 'class' => '\BetssonSports\Client', 'service_url' => 'zzz', 'loginName' => 'xxx', 'password' => 'zzz', ] ... ]
or define the client directly in the code:
$client = new \BetssonSports\Client([ 'service_url' => 'yyy', 'loginName' => 'xxx', 'password' => 'zzz', ]);
Request documentation from Betsson Affiliate program.
This extension allows to store and update data in a local cache to facilitate quicker access and easier data updates. To enable this features, several database tables have to be created using the following migration script:
./yii migrate --migrationPath=./vendor/drsdre/yii2-betssonsports/migrations