Package Data | |
---|---|
Maintainer Username: | HarryBosh |
Maintainer Contact: | info@interludic.com.au (interludic) |
Package Create Date: | 2017-07-04 |
Package Last Update: | 2021-04-07 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-04-23 03:00:47 |
Package Statistics | |
---|---|
Total Downloads: | 44 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 0 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Package for interfacing with the [Challonge] API with Laravel 5.x
composer require interludic/challonge-laravel
add CHALLONGE_KEY=<your key>
to your .env
update your config\app.php
Providers
Interludic\Challonge\ChallongeServiceProvider::class,
Facade
'Challonge' => 'Interludic\Challonge\Facades\Challonge'
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]);
}
Interludic - interludic.com.au Forked from - team-reflex.com [Challonge]: http://api.challonge.com/v1