kruzya / steam-id-converter
Simple library for converting SteamID to v2/v3/community and vice versa
Installs: 1 894
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- ext-gmp: *
This package is auto-updated.
Last update: 2025-06-04 23:05:55 UTC
README
A simple SteamID converter library for using in any project.
Author
- CrazyHackGUT aka Kruzya - Developer/Maintainer
Install
composer require kruzya/steam-id-converter
Example
<?php // we're think you're already loaded // autoloader from Composer. $steam = new \Kruzya\SteamIdConverter\SteamID("STEAM_0:0:55665612"); // How you can just call object methods // for get SteamID in any another formats.
Method | Result |
---|---|
$steam->v3() |
[U:1:111331224] |
$steam->accountId() |
111331224 |
$steam->communityId() |
76561198071596952 |
$steam->v2(0) |
STEAM_0:0:55665612 |
$steam->v2(1) |
STEAM_1:0:55665612 |
$steam->v2WithoutX() |
0:55665612 |
License
MIT