Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 778 Bytes

File metadata and controls

26 lines (20 loc) · 778 Bytes

SUMMARY

This is a thin PHP library for integration with the Challonge API. Uses cURL for http request and SimpleXML for the response handling. Just appends API Key. Master by craigjackson forked from wshatch's master. This fork updates to api v1 and adds "attachments" api requests. by Mano82

EXAMPLE

<?php

require_once(dirname(__FILE__) . '/../src/Challonge/API.php');
ChallongeAPI::$api_key = '# YOUR API KEY #';

$tournament = new ChallongeTournament();
$tournament->setParams(array(
    'tournament' => array(
        'name' => 'Test Tournament',
        'tournament_type' => 'single elimination',
        'url' => 'test' . md5(time() . microtime(true))
    )
));
$xml = $tournament->reqCreate();