PHPackages                             fisk/steam-inventory - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. fisk/steam-inventory

ActiveLibrary

fisk/steam-inventory
====================

The Steam inventory toolkit

1.1.1(4y ago)21.1kBSD-2-ClausePHPPHP ^7.1 || ^8.0CI failing

Since Dec 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fisuku/php-steam-inventory)[ Packagist](https://packagist.org/packages/fisk/steam-inventory)[ RSS](/packages/fisk-steam-inventory/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (2)Versions (8)Used By (0)

php-steam-inventory [![Travis](https://camo.githubusercontent.com/62cda0348f1420b27657a5762449dc4e4ef2422e1c427fc346eb11848961266e/68747470733a2f2f6170692e7472617669732d63692e6f72672f6669736b69652f7068702d737465616d2d696e76656e746f72792e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/62cda0348f1420b27657a5762449dc4e4ef2422e1c427fc346eb11848961266e/68747470733a2f2f6170692e7472617669732d63692e6f72672f6669736b69652f7068702d737465616d2d696e76656e746f72792e7376673f6272616e63683d6d6173746572)
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#php-steam-inventory--)

It is not uncommon for thousands of items to exist in a single Steam inventory, and this can mean a lot of data to parse at the same time! This PHP library aims to provide a simple interface to the Steam Community inventory APIs, while making use of paginated requests to keep inventories manageable in low-memory environments.

This library comes from the experience of someone who has used these APIs for years. I hope this becomes useful for your PHP project.

Composer
--------

[](#composer)

```
composer require fisk/steam-inventory

```

Quick start
-----------

[](#quick-start)

```
getInventory(new \SteamInventory\InventoryQuery(
    "76561198012598620", // steamid
    440                  // appid
));

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

```

What's inside
-------------

[](#whats-inside)

- PHP bindings for the Steam community inventory APIs.
- Seamless, configurable iteration of paginated inventory data.
- Pairing of assets with their item descriptions.
- A simple inventory transport that implements `InventoryTransportInterface`. You may swap this out if you need to change how you make web requests.
- Tests, to make sure this library stays sane.

By default, the items fetched per page is enough to fetch a whole inventory. This is a trade-off depending on your use case; if you make too many requests, you may be subject to hitting request limits. On the other hand, you may run into memory issues if you try to process too many items at the same time.

Please note that this library does not handle exceptions thrown from network errors.

Configuration
-------------

[](#configuration)

`Configuration` accepts the following keys:

- `language` -- the language used for description strings. Defaults to `english`. Note that this isn't a guarantee, as some games may not be subject to i18n.
- `page_size` -- the number of items to retrieve per request. Defaults to 5000.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~216 days

Recently: every ~323 days

Total

7

Last Release

1783d ago

Major Versions

0.2.0 → 1.0.02018-03-04

PHP version history (2 changes)0.1.0PHP ^7.0

1.1.0PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/10fa3c8961248118241ba63d476e8bd5fc54fe67b5710bd676383d3ceb1d1f59?d=identicon)[fisk](/maintainers/fisk)

---

Top Contributors

[![fiskWasTaken](https://avatars.githubusercontent.com/u/4458941?v=4)](https://github.com/fiskWasTaken "fiskWasTaken (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fisk-steam-inventory/health.svg)

```
[![Health](https://phpackages.com/badges/fisk-steam-inventory/health.svg)](https://phpackages.com/packages/fisk-steam-inventory)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
