Skip to content

6. Matches

Kyle edited this page Aug 4, 2022 · 2 revisions

Get Matches

$matches = $challonge->getMatches('teamreflex-bracket1');

Returns Reflex\Challonge\DTO\MatchDto instances for the given tournament.

Get Match

$match = $challonge->getMatches('teamreflex-bracket1', 'matchId');

Returns a Reflex\Challonge\DTO\MatchDto instance for the given tournament and match ID.

Update Match

$params = [
  'scores_csv' => "3-1",
  'winner_id' => $participant->id,
];
$match->update($params);

You can see all available params here: http://api.challonge.com/v1/documents/matches/create

Updates the match attributes.

Clone this wiki locally