PHP code example of kolter / plol

1. Go to this page and download the library: Download kolter/plol 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/ */

    

kolter / plol example snippets

 php

use Kolter\PLoL\Resources\Game;

echo $game->get(1245678);
 php
$game = (new Game("{YOUR API KEY HERE}"))->setCache(false)
->setOutputMode(ObjectOutput());
$game->get(1245678)->games->fellowPlayers[0]->teamId;