PHP code example of nssmart / steam-web-api-client

1. Go to this page and download the library: Download nssmart/steam-web-api-client 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/ */

    

nssmart / steam-web-api-client example snippets


      

     $client = new \Zyberspace\SteamWebApi\Client('[your api key goes here]');
     

     $steamUser = new \Zyberspace\SteamWebApi\Interfaces\ISteamUser($client);
     

     $response = $steamUser->GetPlayerSummariesV2('76561198059720690');
     



$client = new \Zyberspace\SteamWebApi\Client($_ENV['STEAM_WEB_API_KEY']);
$steamUser = new \Zyberspace\SteamWebApi\Interfaces\ISteamUser($client);
$response = $steamUser->GetPlayerSummariesV2(implode(',', $steamIds));

var_dump($response);