interludic / ChallongeLaravel by HarryBosh
forked from teamreflex/ChallongePHP

Unofficial API to interface with the bracket generator Challonge from Laravel.
44
2
0
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

ChallongeLaravel

Package for interfacing with the [Challonge] API with Laravel 5.x

Installation

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'

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]);
			}

Example leaderboard / standings

TODO

  • Config Settings
  • Add support for more than 1 group stage

Interludic - interludic.com.au Forked from - team-reflex.com [Challonge]: http://api.challonge.com/v1