PHPackages                             qstart-soft/steam-api - 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. qstart-soft/steam-api

ActiveLibrary

qstart-soft/steam-api
=====================

PHP library for working with Steam Web API

v1.0.1(3y ago)18MITPHPPHP &gt;=8.1

Since Oct 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/qstart-soft/steam-api)[ Packagist](https://packagist.org/packages/qstart-soft/steam-api)[ RSS](/packages/qstart-soft-steam-api/feed)WikiDiscussions master Synced 1mo ago

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

PHP library for working with Steam Web API
==========================================

[](#php-library-for-working-with-steam-web-api)

Qstart Steam Api library contains all the necessary set of methods for requesting Steam Web API

Installation
------------

[](#installation)

```
$ composer require qstart-soft/steam-api

```

Getting Started
---------------

[](#getting-started)

There are two ways to submit a request.

1. Using a PSR-18 client instance
2. On your own using your favorite library to send HTTP requests

**First** of all, we need to define the method for the request and create an instance of the method.

Each method for the api in the library is a class with properties-arguments.

### First way

[](#first-way)

**Let's send a request using the PSR-18 client:**

```
use Qstart\SteamApi\SteamApiKey;
use Qstart\SteamApi\SteamApi;
use Qstart\SteamApi\Method\SteamApiGetOwnedGamesV1Method;

/** @var Psr\Http\Client\ClientInterface $client */

$key = new SteamApiKey('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');

$steamApi = new SteamApi($key, $client);

$method = new SteamApiGetOwnedGamesV1Method();
$method
    ->setSteamId(76561198072113884)
    ->setIncludeAppInfo(true)
    ->setIncludePlayedFreeGames(true)
    ->setAppIdsFilter([552990]);

/** @var \Psr\Http\Message\ResponseInterface $response */
$response = $steamApi->send($method);

// Json response from API
$json = $response->getBody()->getContents();
$data = json_encode($json, true);
```

### Second way

[](#second-way)

**Now consider the option with self-sending, without using PHP Standards Recommendations (PSR)**

```
use Qstart\SteamApi\SteamApiKey;
use Qstart\SteamApi\SteamApiRequest;
use Qstart\SteamApi\Method\SteamApiGetOwnedGamesV1Method;

$key = new SteamApiKey('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
$method = new SteamApiGetOwnedGamesV1Method();
$method
    ->setSteamId(76561198072113884)
    ->setIncludeAppInfo(true)
    ->setIncludePlayedFreeGames(true)
    ->setAppIdsFilter([552990]);

$request = new SteamApiRequest($method, $key);

$link = $request->getUri();
$arguments = $request->getPreparedArguments();
$psr7Request = $request->getPsr7Request();

// Further, for example, if you want to get a link for a get request
$uri = $link . '?' . http_build_query($arguments);
```

### Formats

[](#formats)

In order to change the format of the response, you must call the setter of the method instance

```
use Qstart\SteamApi\SteamApiFormats;
use Qstart\SteamApi\Method\SteamApiGetOwnedGamesV1Method;

$method = new SteamApiGetOwnedGamesV1Method();
$method->setFormat(SteamApiFormats::VDF);
```

***Wonderful!***

Resources
---------

[](#resources)

- [Steam Web API](https://developer.valvesoftware.com/wiki/Steam_Web_API)
- [PSR-7: HTTP message interfaces](https://www.php-fig.org/psr/psr-7/)
- [PSR-18: HTTP Client](https://www.php-fig.org/psr/psr-18/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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 ~1 days

Total

2

Last Release

1310d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46ff887eb5d499136fe3d3a4a49754a2a88e74cba7ff9ce61a10b237192c9bd6?d=identicon)[qstart](/maintainers/qstart)

---

Top Contributors

[![qstart-soft](https://avatars.githubusercontent.com/u/60501939?v=4)](https://github.com/qstart-soft "qstart-soft (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/qstart-soft-steam-api/health.svg)

```
[![Health](https://phpackages.com/badges/qstart-soft-steam-api/health.svg)](https://phpackages.com/packages/qstart-soft-steam-api)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[aporat/store-receipt-validator

PHP receipt validator for Apple App Store and Amazon Appstore

6503.9M9](/packages/aporat-store-receipt-validator)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3685.2M19](/packages/gotenberg-gotenberg-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)

PHPackages © 2026

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