PHPackages                             tsukanov/steam-locomotive - 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. tsukanov/steam-locomotive

ActiveLibrary[API Development](/categories/api)

tsukanov/steam-locomotive
=========================

PHP wrapper for Steam Web API with some useful tools

0.3.0(11y ago)126834[3 issues](https://github.com/gentlecat/steam-locomotive/issues)1Apache-2.0PHPPHP &gt;=5.4CI passing

Since Jan 31Pushed 7y ago3 watchersCompare

[ Source](https://github.com/gentlecat/steam-locomotive)[ Packagist](https://packagist.org/packages/tsukanov/steam-locomotive)[ Docs](https://github.com/Tsukanov/steam-locomotive/)[ RSS](/packages/tsukanov-steam-locomotive/feed)WikiDiscussions master Synced 2mo ago

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

Steam Locomotive
================

[](#steam-locomotive)

[![Build Status](https://camo.githubusercontent.com/3e629123f989ab27119eeb1768b98f97fbb15409cf7157e7a66ceff2a3edc62c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f67656e746c656361742f737465616d2d6c6f636f6d6f746976652e737667)](https://travis-ci.org/gentlecat/steam-locomotive)[![Latest Stable Version](https://camo.githubusercontent.com/27f2c9e7f6ef28054559fb5d3e239d7a3bb13e91ac3b469d0989183b64e0ba51/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7473756b616e6f762f737465616d2d6c6f636f6d6f746976652e737667)](https://packagist.org/packages/tsukanov/steam-locomotive)

Steam Locomotive is a PHP wrapper for Steam Web API with useful tools such as Steam ID converters, validators, etc.

**⚠️Please note that this project is no longer actively maintained by the original author!**The best way to make a change is by submitting a pull request. You can add missing interface, fix function that is not working properly or do something else. Any improvements are welcome!

How it works
------------

[](#how-it-works)

This library wraps interfaces provided by Steam Web API into PHP classes and functions. It simplifies communication with Steam while preserving original structure of its API. Each interface, method, and parameter has the same name so you can easily start using this library if you worked with Steam Web API before.

Also, this library provides some useful tools that are not available in official API, but might be needed. You can get additional details about applications, store, prices; convert Steam ID or validate one.

### Returned data format

[](#returned-data-format)

In most cases functions return JSON that is decoded using [`json_decode`](http://php.net/json_decode) function. *See PHPDoc comments to find out more about data returned by each function.*

Usage example
-------------

[](#usage-example)

```
use Tsukanov\SteamLocomotive\Locomotive;
$steam = new Locomotive(YOUR_STEAM_API_KEY);

// Getting information about heroes in Dota 2
$response = $steam->IEconDOTA2_570->GetHeroes();

```

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

[](#installation)

### [Composer](http://getcomposer.org/)

[](#composer)

Composer is a tool for dependency management in PHP. Steam Locomotive is available as a [package](https://packagist.org/packages/tsukanov/steam-locomotive) for Composer. All you need to do is define the following requirement in your composer.json file:

```
{
    "require": {
        "tsukanov/steam-locomotive": "0.3.0"
    }
}

```

License
-------

[](#license)

```
Copyright 2016 Roman Tsukanov

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.1% 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 ~80 days

Total

4

Last Release

4245d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.3

0.3.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/a25609971cedd1dc5fae4f7fb037824f986beb5f08a8164ec09080315e821743?d=identicon)[gentlecat](/maintainers/gentlecat)

---

Top Contributors

[![gentlecat](https://avatars.githubusercontent.com/u/460525?v=4)](https://github.com/gentlecat "gentlecat (100 commits)")[![bashilbers](https://avatars.githubusercontent.com/u/455905?v=4)](https://github.com/bashilbers "bashilbers (1 commits)")[![ilumos](https://avatars.githubusercontent.com/u/509407?v=4)](https://github.com/ilumos "ilumos (1 commits)")[![VibroAxe](https://avatars.githubusercontent.com/u/1069212?v=4)](https://github.com/VibroAxe "VibroAxe (1 commits)")

---

Tags

api-wrappercomposergamesphpsteamsteamvalvedotatf2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tsukanov-steam-locomotive/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[koraktor/steam-condenser

The Steam Condenser is a library for querying the Steam Community, Source and GoldSrc game servers

21045.6k](/packages/koraktor-steam-condenser)[zyberspace/steam-web-api-client

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

857.2k1](/packages/zyberspace-steam-web-api-client)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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