PHPackages                             signpostmarv/steam-id - 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. signpostmarv/steam-id

ActiveLibrary

signpostmarv/steam-id
=====================

SteamID Parsing

v0.2.0(3y ago)014Apache-2.0PHPPHP ^7.4|^8.1CI failing

Since Jan 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/SignpostMarv/steam-id)[ Packagist](https://packagist.org/packages/signpostmarv/steam-id)[ RSS](/packages/signpostmarv-steam-id/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (10)Versions (4)Used By (0)

signpostmarv/steam-id
=====================

[](#signpostmarvsteam-id)

[![Test Status](https://github.com/SignpostMarv/steam-id/workflows/Tests/badge.svg)](https://github.com/SignpostMarv/steam-id/actions) [![Code Coverage](https://camo.githubusercontent.com/9cb5de4151d65860cd167252740888017ff1f11a025d62a28c17b27ad81f62ca/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f5369676e706f73744d6172762f737465616d2d69642f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/SignpostMarv/steam-id?branch=master) [![Type Coverage](https://camo.githubusercontent.com/66dd1e2c8cbeb9a3a92618959bd77a17c93acd265196cdcefcbea76457c32066/68747470733a2f2f73686570686572642e6465762f6769746875622f5369676e706f73744d6172762f737465616d2d69642f636f7665726167652e737667)](https://camo.githubusercontent.com/66dd1e2c8cbeb9a3a92618959bd77a17c93acd265196cdcefcbea76457c32066/68747470733a2f2f73686570686572642e6465762f6769746875622f5369676e706f73744d6172762f737465616d2d69642f636f7665726167652e737667)

A library for parsing [Steam IDs](https://developer.valvesoftware.com/wiki/SteamID)

Requirements
------------

[](#requirements)

- php-7.4
- ext-ctype

Install
-------

[](#install)

`composer require signpostmarv/steam-id`

### Suggested Steps

[](#suggested-steps)

#### Use vimeo/psalm

[](#use-vimeopsalm)

Psalm saves on implementing runtime checks that can be detected with static analysis.

For example, [at the time of writing](https://developer.valvesoftware.com/w/index.php?title=SteamID&oldid=228298) an ID's Universe component does not go higher than 5 but uses an 8-bit field, but the following code will fail to pass a check on psalm:

```
new \SignpostMarv\SteamId\SteamId(0, 0, 0, 0, 6);
```

> ERROR: InvalidArgument - Argument 5 of SignpostMarv\\SteamId\\SteamId::\_\_construct expects int(0)|int(1)|int(2)|int(3)|int(4)|int(5), int(6) provided

- [Install vimeo/psalm](https://psalm.dev/docs/running_psalm/installation/)
- [Configure psalm to test your source](https://psalm.dev/docs/running_psalm/configuration/#ltprojectfilesgt)

### Optional Steps

[](#optional-steps)

Use either the [BCMath](https://github.com/signpostmarv/brick-math-base-convert-bcmath) or [GMP](https://github.com/signpostmarv/brick-math-base-convert-gmp) calculators if the relevant php extension is available.

Examples
--------

[](#examples)

### Obtain Steam Community URL

[](#obtain-steam-community-url)

```
use SignpostMarv\SteamId\Parser;

$parser = new Parser();

$id = $parser->FromString('76561197960287930');

$url = $parser->ToSteamCommunityUrl($id);
```

License
-------

[](#license)

Apache-2.0

###  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

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

Total

3

Last Release

1417d ago

PHP version history (2 changes)v0.1.0PHP ^7.4

v0.2.0PHP ^7.4|^8.1

### Community

Maintainers

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

---

Top Contributors

[![SignpostMarv](https://avatars.githubusercontent.com/u/304403?v=4)](https://github.com/SignpostMarv "SignpostMarv (31 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/signpostmarv-steam-id/health.svg)

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

PHPackages © 2026

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