PHP code example of dolejska-daniel / riot-api-datadragon
1. Go to this page and download the library: Download dolejska-daniel/riot-api-datadragon 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/ */
dolejska-daniel / riot-api-datadragon example snippets
echo DataDragonAPI::getChampionLoading('Orianna');
echo DataDragonAPI::getChampionLoading('Orianna', 7);
DataDragonAPI::iniByVersion('0.151.2');
echo DataDragonAPI::getItemIcon(3132);
echo DataDragonAPI::getItemIcon(3126);
echo DataDragonAPI::getItemIcon(3138);
// ...
$orianna = $api->getStaticChampion(61, true);
echo DataDragonAPI::getChampionSplashO($orianna);
foreach($orianna->spells as $spell)
echo DataDragonAPI::getChampionSpellIconO($spell);