LaravelPackages.net
Acme Inc.
Toggle sidebar
interludic/challonge-laravel

Unofficial API to interface with the bracket generator Challonge from Laravel.

48
2
v1.0.4
About interludic/challonge-laravel

interludic/challonge-laravel is a Laravel package for unofficial api to interface with the bracket generator challonge from laravel.. It currently has 2 GitHub stars and 48 downloads on Packagist (latest version v1.0.4). Install it with composer require interludic/challonge-laravel. Discover more Laravel packages by interludic or browse all Laravel packages to compare alternatives.

Last updated

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

Comments