PHPackages                             zyberspace/steam-web-api-client - 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. [API Development](/categories/api)
4. /
5. zyberspace/steam-web-api-client

ActiveLibrary[API Development](/categories/api)

zyberspace/steam-web-api-client
===============================

Automatically generated api client for the Steam Web API in style of the google-api-php-client.

v0.5.0(9y ago)857.2k181MPL-2.0PHP

Since Jan 8Pushed 9y ago9 watchersCompare

[ Source](https://github.com/zyberspace/php-steam-web-api-client)[ Packagist](https://packagist.org/packages/zyberspace/steam-web-api-client)[ Docs](https://github.com/zyberspace/php-steam-web-api-client)[ RSS](/packages/zyberspace-steam-web-api-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

zyberspace/steam-web-api-client
===============================

[](#zyberspacesteam-web-api-client)

Automatically generated api client for the [Steam Web API](https://developer.valvesoftware.com/wiki/Steam_Web_API) in style of the [google-api-php-client](https://github.com/google/google-api-php-client/).

[![Packagist](https://camo.githubusercontent.com/40d867c792380560c928490eece5cd958c2ec8959e7821c1532640a987c0925b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a7962657273706163652f737465616d2d7765622d6170692d636c69656e742e737667)](https://packagist.org/packages/zyberspace/steam-web-api-client)[![License](https://camo.githubusercontent.com/280563cef872a98aaddfe9031602eb7083222a86f1ffccbfe1b95b798c88d17d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7a7962657273706163652f737465616d2d7765622d6170692d636c69656e742e737667)](https://www.mozilla.org/MPL/2.0/)

Automatically generated?
------------------------

[](#automatically-generated)

Yeah, every API interface (those are not php interfaces) got generated automatically from the [`/ISteamWebAPIUtil/GetSupportedAPIList/v1/`](https://github.com/zyberspace/php-steam-web-api-client/blob/master/lib/Zyberspace/SteamWebApi/Interfaces/ISteamWebAPIUtil.php#L16-L23) method. Only the classes outside of the `Interfaces` directory are written from hand.

This way it is easy for me to keep the api updated because i just need to run the generation command every time valve changes something.

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

[](#installation)

In your project-root:

```
composer require --update-no-dev zyberspace/steam-web-api-client
```

Composer will then automatically add the package to your project requirements and install it (also creates the `composer.json` if you don't have one already).

Client structure
----------------

[](#client-structure)

The client is structured in 3 peaces:

- The `Client` class which saves your api key and takes care of the actual api calls.
- The api interfaces which are automatically generated and provide the api methods to call.
- The `InterfaceGenerator` which generated the interfaces. **You don't need this one except you want to update the saved interface classes.**
    (Use it by installing the dev dependencies and the execute `composer generate-interfaces [your api key]`.)

Quickstart
----------

[](#quickstart)

If you installed the client with composer like above and already [obtained](http://steamcommunity.com/dev/apikey) your api key from valve these are the 4 steps to use the api:

1. Require the composer autoloader

    ```
    require('vendor/autoload.php');
    ```
2. Create the Steam Web API Client

    ```
    $client = new \Zyberspace\SteamWebApi\Client('[your api key goes here]');
    ```
3. Create an instance of the api interface you want to use

    ```
    $steamUser = new \Zyberspace\SteamWebApi\Interfaces\ISteamUser($client);
    ```
4. Make your call to the method you want to use

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

Every method returns an object build from the json response. If you want to know more about the response format of every specific method, check the [Steam Web API documentation](https://developer.valvesoftware.com/wiki/Steam_Web_API).

```
require('vendor/autoload.php');

$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);
```

Working with multiple optional arguments
----------------------------------------

[](#working-with-multiple-optional-arguments)

If the method you need has multiple optional arguments but you don't want to use all of them, set the non-needed arguments to `null`. This is also the default value for them and will therefore be ignored by the client.

Documentation
-------------

[](#documentation)

To create the docs, just run `phpdoc` in the the project-root.
An online-version is available at [phpdoc.zyberware.org/zyberspace/steam-web-api-client](http://phpdoc.zyberware.org/zyberspace/steam-web-api-client/).

For more information about the api interfaces and the methods please refer to the [Steam Web API documentation](https://developer.valvesoftware.com/wiki/Steam_Web_API).

License
-------

[](#license)

This software is licensed under the [Mozilla Public License v. 2.0](http://mozilla.org/MPL/2.0/). For more information, read the file `LICENSE`.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity57

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

Total

5

Last Release

3501d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2286104?v=4)[Eric Enold](/maintainers/zyberspace)[@zyberspace](https://github.com/zyberspace)

---

Top Contributors

[![zyberspace](https://avatars.githubusercontent.com/u/2286104?v=4)](https://github.com/zyberspace "zyberspace (21 commits)")

---

Tags

steamsteam-apivalveapiclientwebsteamgeneratedautomatically

### Embed Badge

![Health badge](/badges/zyberspace-steam-web-api-client/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[crowdin/crowdin-api-client

PHP client library for Crowdin API v2

611.5M5](/packages/crowdin-crowdin-api-client)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[markrogoyski/numverify-api-client-php

Numverify API Client for PHP

1220.9k](/packages/markrogoyski-numverify-api-client-php)

PHPackages © 2026

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