PHP code example of team-reflex / challonge-php
1. Go to this page and download the library: Download team-reflex/challonge-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
team-reflex / challonge-php example snippets
$http = new GuzzleHttp\Client();
$challonge = new Challonge($http, 'api_key_here', true);
$tournament = $challonge->createTournament([
'tournament[name]' => 'test'
]);
$tournament = $challonge->createTournament([
'name' => 'test'
]);
$tournament = $challonge->fetchTournament('challongephptest');
bash
composer