examples/DataDragonAPI/ChampionAssets/getChampionSplash.php
<?php
require __DIR__ . "/../../../vendor/autoload.php";
use RiotAPI\DataDragonAPI\DataDragonAPI;
DataDragonAPI::initByCdn();
$key = 'Velkoz';
?>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body class="container">
<p class="lead">Fetching champion splash art for champion:</p>
<?=DataDragonAPI::getChampionSplash($key)?>
<pre><?=DataDragonAPI::getChampionSplash(<?=$key?>)?></pre>
<p class="lead">Fetching champion splash art for champion:</p>
<?=DataDragonAPI::getChampionSplash($key, 2)?>
<pre><?=DataDragonAPI::getChampionSplash(<?=$key?>, 2)?></pre>
<p class="lead">With additional classes:</p>
<div class="row">
<div class="col-sm-6">
<?=DataDragonAPI::getChampionSplash($key, 0, [ 'class' => 'img-thumbnail' ])?>
<pre><?=DataDragonAPI::getChampionSplash(<?=$key?>, 0, [ 'class' => 'img-thumbnail' ])?></pre>
</div>
<div class="col-sm-6">
<?=DataDragonAPI::getChampionSplash($key, 0, [ 'class' => 'rounded w-100', ])?>
<pre><?=DataDragonAPI::getChampionSplash(<?=$key?>, 0, [ 'class' => 'rounded w-100', ])?></pre>
</div>
</div>
</body>
</html>