doctormckay/steamid

PHP SteamID Manipulation

Installs: 50 970

Dependents: 1

Suggesters: 0

Security: 0

Stars: 10

Watchers: 2

Forks: 8

Open Issues: 0

pkg:composer/doctormckay/steamid

v1.0.3 2021-09-10 03:43 UTC

This package is auto-updated.

Last update: 2025-10-10 12:25:46 UTC


README

SteamID class for PHP. The class is documented with phpdoc, just read it to find out how to use it.

Works on both 32 and 64-bit PHP.

node.js version is also available, which can be browserified pretty easily.

Example

<?php
require_once 'vendor/autoload.php';

use SteamID\SteamID;

$steamid = new SteamID('76561197960435530');

echo "SteamID2: " . $steamid->getSteam2RenderedID() . PHP_EOL;
echo "SteamID3: " . $steamid->getSteam3RenderedID() . PHP_EOL;
echo "SteamID64: " . $steamid->getSteamID64() . PHP_EOL;