kruzya/steam-id-converter

Simple library for converting SteamID to v2/v3/community and vice versa

1.0.0 2020-05-04 10:44 UTC

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

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