examples/DataDragonAPI/ProfileIcons/getProfileIconById.php
<?php
require __DIR__ . "/../../../vendor/autoload.php";
use RiotAPI\DataDragonAPI\DataDragonAPI;
DataDragonAPI::initByCdn();
$id = 1;
?>
<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 profile icon with ProfileIconID:</p>
<?=DataDragonAPI::getProfileIcon($id)?>
<pre><?=DataDragonAPI::getProfileIcon(<?=$id?>)?></pre>
<p class="lead">With additional classes:</p>
<div class="row">
<div class="col-sm-6">
<?=DataDragonAPI::getProfileIcon($id, [ 'class' => 'img-thumbnail', ])?>
<pre><?=DataDragonAPI::getProfileIcon(<?=$id?>, 0, [ 'class' => 'img-thumbnail', ])?></pre>
</div>
<div class="col-sm-6">
<?=DataDragonAPI::getProfileIcon($id, [ 'class' => 'rounded', ])?>
<pre><?=DataDragonAPI::getProfileIcon(<?=$id?>, 0, [ 'class' => 'rounded', ])?></pre>
</div>
<div class="col-sm-6">
<?=DataDragonAPI::getProfileIcon($id, [ 'class' => 'rounded-circle', ])?>
<pre><?=DataDragonAPI::getProfileIcon(<?=$id?>, 0, [ 'class' => 'rounded-circle', ])?></pre>
</div>
</div>
</body>
</html>