drsdre / yii2-betssonsports
Yii2 Extension for Betsson Sports API access
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- ext-soap: *
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-10-29 04:14:42 UTC
README
Yii2 client for Betsson Sportsbook API
Requirements:
PHP5 with SOAP client.
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist drsdre/yii2-betssonsports "*"
or add
"drsdre/yii2-betssonsports": "*"
to the require
section of your composer.json
file.
Usage
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', ]);
How to use API:
Request documentation from Betsson Affiliate program.
Cache setup:
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