fkrzski / laravel-steam-api-sdk
Laravel bridge for fkrzski/php-steam-api-sdk — service provider, Steam facade and test fakes for the Steam Web API.
Fund package maintenance!
0.1.0
2026-06-11 05:44 UTC
Requires
- php: ^8.5.0
- fkrzski/php-steam-api-sdk: ^0.2
- illuminate/contracts: ^13.0
- illuminate/support: ^13.0
- saloonphp/saloon: ^4.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.29.1
- orchestra/testbench: ^11.0
- pestphp/pest: ^4.0.0
- pestphp/pest-plugin-type-coverage: ^4.0.0
- rector/rector: ^2.4.2
- symfony/var-dumper: ^8.0.8
This package is auto-updated.
Last update: 2026-07-23 05:38:00 UTC
README
Laravel bridge for fkrzski/php-steam-api-sdk. Ships a service provider, a Steam facade and a Steam::fake() test helper so you can talk to the Steam Web API the Laravel way.
- Auto-discovered
SteamConnectorsingleton, Octane-safe. - Rate-limit budget shared across processes through the Laravel cache store.
- Fluent
Steamfacade with first-class request helpers. AsSteamIdEloquent cast and one-liner test fakes via Saloon'sMockClient.
Requirements
- PHP 8.5+
- Laravel 13+
Installation
composer require fkrzski/laravel-steam-api-sdk
The service provider and Steam facade are auto-discovered. Publish the config to override defaults:
php artisan vendor:publish --tag=steam-api-config
Set your Steam Web API key in .env:
STEAM_API_KEY=your-steam-web-api-key
Quick start
use Fkrzski\LaravelSteamApiSdk\Facades\Steam; use Fkrzski\SteamApiSdk\ValueObjects\SteamId; $id = SteamId::fromSteamId64('76561198000000000'); $summaries = Steam::playerSummaries([$id]); $library = Steam::ownedGames($id, appIdsFilter: [381210]); $stats = Steam::userStatsForGame($id, appId: 381210); $achievements = Steam::playerAchievements($id, appId: 381210); $resolvedId = Steam::resolveVanityUrl('gabelogannewell');
Each helper returns a strongly-typed DTO from the underlying SDK — you never touch raw JSON.
Documentation
Full documentation lives at docs.fkrzski.dev/laravel-steam-api-sdk:
- Guide — the
SteamIdvalue object, facade helpers, exceptions, and concurrent requests. - Configuration — the config file, your API key, and the cache-backed rate limit.
- API reference — every facade method, its parameters, return type, and errors.
- Eloquent cast — persist a Steam ID on a model with
AsSteamId. - Testing — fake the Steam Web API with
Steam::fake().
License
MIT. See LICENSE.md.
