zubat/challonge-laravel
最新稳定版本:1.0.3
Composer 安装命令:
composer require zubat/challonge-laravel
包简介
Unofficial API to interface with the bracket generator Challonge from Laravel.
README 文档
README
Package for interfacing with the Challonge API with Laravel 5.x
Installation
composer require ZUBAT/Challonge-laravel
add CHALLONGE_KEY=<your key> to your .env
update your config\app.php
Providers
ZUBAT\Challonge\ChallongeServiceProvider::class,
Facade
'Challonge' => 'ZUBAT\Challonge\Facades\Challonge'
Usage
try {
$comp = Challonge::getTournament($challongeId);
if((!empty($comp)) && (($comp->state == "complete") || ($comp->state == "underway") || ($comp->state == "group_stages_underway"))){
$standings = Challonge::getStandings($challongeId);
// $standings['progress'] //Progress of group stage
}
} catch (Exception $e) {
Log::warning('Challonge failed to load standings!', ['challonge'=>$challongeId]);
}
TODO
- Config Settings
- Add support for more than 1 group stage
ZUBAT - zubat.ru Forked from - interludic.com.au
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-12