emnabs/yii2-websports

Yii2 Sports Event Data Component

Installs: 31

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.1.3 2017-05-27 12:34 UTC

This package is auto-updated.

Last update: 2024-12-16 22:58:48 UTC


README

Provides settings for sporting events, interfaces, custom implementations, pulls, remote interfaces, and data content related to sports competitions. The basic interface implements the definition of soccer data, such as schedule, game, score list, player list.

Latest Stable Version Total Downloads License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist emnabs/yii2-websports "*"

or add

"emnabs/yii2-websports": "*"

to the require section of your composer.json.

Usage

To use this extension, you have to configure the Connection class in your application configuration:

//configure component:
return [
    //....
    'components' => [
	//....
        'sports' => [
            'class' => 'emhome\websports\Sports',
        ],
	//....
    ]
];

Usage example

Yii::$app->sports->compose()->schedule();

包含接口

License

yii2-websports is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.