Skip to content

Instantly share code, notes, and snippets.

View MindaugasR's full-sized avatar

Mindaugas MindaugasR

View GitHub Profile
@MindaugasR
MindaugasR / SteamUserFunctions.php
Created March 19, 2019 09:35 — forked from rannmann/SteamUserFunctions.php
Convert Steam IDs to and from Community IDs and User IDs
<?php
/* Examples
toSteamID(25490879) // STEAM_0:1:12745439
toSteamID(76561197985756607) // STEAM_0:1:12745439
toSteamID("STEAM_0:1:12745439") // STEAM_0:1:12745439
toUserID(25490879) // 25490879
toUserID(76561197985756607) // 25490879
toUserID("STEAM_0:1:12745439") // 25490879