zeropingheroes / steam-apis
Interface with Steam's APIs.
3.1.0
2026-03-25 23:12 UTC
Requires
- php: ^8.2
- ext-json: *
- illuminate/collections: ^11.0 || ^12.0
- illuminate/support: ^11.0 || ^12.0
- saloonphp/laravel-plugin: ^4.0
- saloonphp/pagination-plugin: ^2.0
- saloonphp/rate-limit-plugin: ^2.0
- saloonphp/saloon: ^4.0
- spatie/laravel-data: ^4.0
- xpaw/steamid: ^4.0
Requires (Dev)
- astrotomic/phpunit-assertions: ^0.12.0
- laravel/pint: ^1.27.1
- orchestra/testbench: ^10.9.0
- pestphp/pest: ^3.8.5
- pestphp/pest-plugin-laravel: ^3.2.0
This package is auto-updated.
Last update: 2026-04-25 23:33:49 UTC
README
Interface with Steam's APIs using PHP.
Forked with ❤️ from Astrotomic/steam-sdk.
Installation
composer require zeropingheroes/steam-apis
In your Laravel project's config/services.php add your Steam API key:
<?php return [ 'steam' => [ 'api_key' => env('STEAM_API_KEY'), 'rate_limit_store_path' => storage_path('app/steam-api'), ], ];
Usage example
use Zeropingheroes\SteamApis\SteamWebApiConnector\SteamWebApiConnector; use Zeropingheroes\SteamApis\SteamCommunityApi\SteamCommunityApiConnector; use Zeropingheroes\SteamApis\SteamStoreApi\SteamStoreApiConnector; $steamWebApi = app(SteamWebApiConnector::class); $playerSummary = $steamWebApi->getPlayerSummaries(steamids: [76561197960287930, 76561198061912622]); $steamCommunityApi = app(SteamCommunityApiConnector::class); $locations = $steamCommunityApi->queryLocations(countrycode: 'DE'); $steamStoreApi = app(SteamStoreApiConnector::class); $appDetails = $steamStoreApi->appDetails(appid: 440);
Implemented requests
| Steam API | Steam Interface | Class Method | Connector Class |
|---|---|---|---|
| Web API | ISteamApps |
getAppList() |
SteamWebApiConnector |
| Web API | ISteamNews |
getNewsForApp() |
SteamWebApiConnector |
| Web API | ISteamUser |
getFriendList() |
SteamWebApiConnector |
| Web API | ISteamUser |
getPlayerBans() |
SteamWebApiConnector |
| Web API | ISteamUser |
getPlayerSummaries() |
SteamWebApiConnector |
| Web API | ISteamUser |
resolveVanityUrl() |
SteamWebApiConnector |
| Web API | IPlayerService |
getRecentlyPlayedGames() |
SteamWebApiConnector |
| Web API | IPlayerService |
getSteamLevel() |
SteamWebApiConnector |
| Web API | ISteamUserStats |
getGlobalAchievementPercentagesForApp() |
SteamWebApiConnector |
| Web API | ISteamWebAPIUtil |
getSupportedApiList() |
SteamWebApiConnector |
| Community API | ? | queryLocations() |
SteamCommunityApiConnector |
| Store API | ? | appDetails() |
SteamStoreApiConnector |
For more information on Steam's APIs, see:
- https://partner.steamgames.com/doc/webapi
- https://steamapi.xpaw.me/
- https://steamcommunity.com/dev
- https://developer.valvesoftware.com/wiki/Steam_Web_API
Contributing
Fork the repository, implement one feature or bugfix in a new branch and send a pull request.
Good examples of first contributions are implementing missing requests or fixing bugs.
This project uses Saloon to implement Steam API requests.
License
The MIT License (MIT). See License File for more information.