PHP code example of fisk / steam-inventory

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

    

fisk / steam-inventory example snippets


<php
$client = new \SteamInventory\Client();

$inventory = $client->getInventory(new \SteamInventory\InventoryQuery(
    "76561198012598620", // steamid
    440                  // appid
));

foreach ($inventory->getItems() as $item) {
    $asset = $item->getAsset();
    $description = $item->getDescription();
    (...)
}