drsdre/yii2-betssonsports Yii2 Extension for Betsson Sports API access

extensionapisoapconsumerbetsson.comsportsbooklivesportodds

Yii2-betssonsports

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

That's all!

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

  • 1.310 December 2015
  • 1.210 December 2015
  • 1.1.210 December 2015
  • 1.1.110 December 2015
  • 1.110 December 2015
  • 1.030 October 2015

Comments



1.3 is the latest of 6 releases



BSD-3-Clause license
Stats
0 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
29 total downloads