Skip to content

Simple Challonge API wrapper, in PHP. (unofficial)

License

Notifications You must be signed in to change notification settings

imbue/challonge-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Challonge PHP wrapper

Simple Challonge API wrapper, in PHP.

Installation

composer require imbue/challonge-php

Usage

$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

List of available methods

Tournaments

getTournaments();
getTournament($tournament);
createTournament($params);
updateTournament($tournament, $params);
deleteTournament($tournament);

Participants

getParticipants($tournament);
getParticipant($tournament. $participant);
createParticipant($tournament, $params);
updateParticipant($tournament, $participant, $params);
randomizeParticipants($tournament);

Matches

getMatches($tournament);
getMatch($tournament, $match);
updateMatch($tournament, $match, $params);

About

Simple Challonge API wrapper, in PHP. (unofficial)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages