Skip to content

3. Usage

Kyle edited this page Apr 10, 2017 · 3 revisions

First you need an API key from Challonge. Store this in a configuration file, environment file or whatever you use, so it doesn't get committed and exposed.

$challonge = new Challonge('apikey');

If you for some reason need to disable SSL verification, you can pass in a boolean too.

$challonge = new Challonge('apikey', false);

Defaults to true and is recommended to leave this set to the default.

Instantiation doesn't make any requests, so you don't need to cache this. Now you're ready to use the library.

Clone this wiki locally