drsdre/yii2-betssonsports 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drsdre/yii2-betssonsports

最新稳定版本:1.3

Composer 安装命令:

composer require drsdre/yii2-betssonsports

包简介

Yii2 Extension for Betsson Sports API access

README 文档

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

That's all!

统计信息

  • 总下载量: 29
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-09-30