-
Notifications
You must be signed in to change notification settings - Fork 0
Migration Guide
The maintained Composer package is:
teemocell/steam-web-api
Remove the previously installed package requirement, then install the maintained package:
composer require teemocell/steam-web-apiThe package uses the following PHP namespace:
use TeemoCell\SteamWebApi\Client;Use:
STEAM_API_KEY=your-key-herePublish or refresh config/steam-api.php in Laravel applications if necessary.
Prefer the explicit constructor and typed factory methods:
$steam = new Client(apiKey: $apiKey);
$steam->news();
$steam->player($steamId);
$steam->user($steamId);
$steam->userStats($steamId);Replace the deprecated alias:
$steam->userStats($steamId)->GetPlayerAchievementsAPI($appId);with:
$steam->userStats($steamId)->GetPlayerAchievements($appId);The corrected method uses ISteamUserStats/GetPlayerAchievements/v1. Use GetPlayerAchievementsFromCommunity() only when the legacy Community XML response is explicitly required.
IsPlayingSharedGame() is no longer documented by Steam. Publisher integrations can migrate to:
$publisher = (new Client(apiKey: $publisherKey))->publisher();
$ownership = $publisher->CheckAppOwnership($steamId, $appId);This call requires a publisher key and must run on a trusted server.
New typed clients are available for:
workshop()webApi()gameServers()publisher()
See Endpoint reference for supported methods and access requirements.
- Replace the Composer package name.
- Use
TeemoCell\SteamWebApiimports. - Confirm
STEAM_API_KEYis configured. - Replace deprecated achievement calls.
- Run offline tests.
- Test privacy-sensitive and publisher endpoints with appropriate accounts and keys.
Documentation for teemocell/steam-web-api · Licensed under the MIT License