dev-master
9999999-devChallonge PHP wrapper
MIT
The Requires
- php >=7.0
- guzzlehttp/guzzle ^6.3
by Liam Boer
dev-develop
dev-developChallonge PHP wrapper
MIT
The Requires
- php >=7.0
- guzzlehttp/guzzle ^6.3
by Liam Boer
Challonge PHP wrapper
Simple Challonge API wrapper, in PHP., (*1)
composer require imbue/challonge-php
$challonge = new Challonge('api_key');
// Retrieve a set of tournaments created with your account. $tournaments = $challonge->getTournaments(); // Retrieve a single tournament $tournament = $challonge->getTournament('tournament_id');
// Create a new tournament $tourament = $challonge->createTournament([ 'tournament' => [ 'name' => 'Tournament name', 'url' => 'imbues_new_tournament', ... ] ]); // Update an existing tournament $tournament = $challonge->updateTournament($tournament, [ 'tournament' => [ 'name' => 'New tournament name', ... ] ]); // for the full list of available parameters visit: https://api.challonge.com/v1/documents/tournaments/create
getTournaments(); getTournament($tournament); createTournament($params); updateTournament($tournament, $params); deleteTournament($tournament);
getParticipants($tournament); getParticipant($tournament. $participant); createParticipant($tournament, $params); updateParticipant($tournament, $participant, $params); randomizeParticipants($tournament);
getMatches($tournament); getMatch($tournament, $match); updateMatch($tournament, $match, $params);
Challonge PHP wrapper
MIT
Challonge PHP wrapper
MIT