zubat / challonge-laravel
Unofficial API to interface with the bracket generator Challonge from Laravel.
1.0.3
2022-10-13 06:04 UTC
Requires
- guzzlehttp/guzzle: ^6.0
This package is auto-updated.
Last update: 2025-07-13 12:05:30 UTC
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