/Thresh-Example

This is a example Usage for the Thresh library

Primary LanguageJavaScript

Thresh Example

This is an example project for the Thresh library.

Main file: public/index.php (uses Twig as templating engine)

public/summoner.php and public/game.php are pure PHP and HTML examples

In order to use the Thresh library you must have this code in your main PHP file:

Use EncryptionUtils::encrypt('<your_api_key>') to encrypt your RIOT API KEY which you can get here
Use Config::setApiKey($encrypted_api_key) to set your api key for the application (this key will be used for the Riot API calls)
Use Config::setRegion(<region>) to set and update the region that the library uses for API calls (full list of Regions can be found here )
Use Config::setPlatform(<platform>) to set and update the platform that the library uses for API calls (full list of Platforms can be found here )
Use Loader::init() to initialize the Application (It automatically updates Champions, Runes, Maps, QueueTypes, etc... when there is a new version available)