PHP code example of andrewbroberg / pubg-php

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

    

andrewbroberg / pubg-php example snippets

 bash
$ composer 
 php
$api = new AndrewBroberg\PUBG\API($apiKey);
$api->getMatch('pc-oc', 'matchid');
$api->getPlayer('pc-oc', 'playerid');
$api->getPlayers('pc-oc', ['playerIds' => [
    'playerid',
]]);