matthewlilley / php-steam-inventory
A framework agnostic and extensible PHP wrapper for the Steam Inventory API (http://steamcommunity.com/inventory/).
dev-master / 1.0.x-dev
2018-02-27 18:47 UTC
Requires
- php: >=7.1.0
- doctormckay/steamid: ^1.0
Requires (Dev)
- mockery/mockery: 1.0.x-dev
- phpunit/phpunit: ^5.7
- symfony/thanks: ^1.0
This package is not auto-updated.
Last update: 2025-01-16 03:36:16 UTC
README
A framework agnostic and extensible PHP wrapper for the Steam Inventory API https://steamcommunity.com/inventory
Installation
The suggested installation method is via composer:
php composer.phar require matthewlilley/php-steam-inventory
Inventory Example
$config = new \PHPSteamInventory\Configuration([ 'steamid' => '76561197969338647', // required 'appid' => '730', // default 730 'contextid' => '2', // default 2 'language' => 'english', // default english 'count' => '75', // default 75, max 5000 (also, overwritten to 5000 if all is set to true) 'start_assetid' => null, // default null 'proxy' => null, // default null 'all' => false // default false ]); $inventory = new \PHPSteamInventory\Inventory($configuration); $inventory->items; // array of item objects $inventory->total_inventory_count; // total items count $inventory->last_assetid; // last assetid (set if there are more items) $inventory->more_items; // more items (set to true if there are more items)