2017 © Pedro Peláez
 

library challonge-php

Challonge PHP wrapper

image

imbue/challonge-php

Challonge PHP wrapper

  • Monday, April 9, 2018
  • by imbue
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Challonge PHP wrapper

Simple Challonge API wrapper, in PHP., (*1)

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

The Versions

09/04 2018

dev-master

9999999-dev

Challonge PHP wrapper

  Sources   Download

MIT

The Requires

 

by Liam Boer

09/04 2018

dev-develop

dev-develop

Challonge PHP wrapper

  Sources   Download

MIT

The Requires

 

by Liam Boer