forked from syntaxerrors/Steam
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
TeemoCell edited this page Jul 20, 2026
·
2 revisions
The package supports PHP 8.1 and newer and Laravel 10 through 13. The required PHP extensions are listed in composer.json.
composer require teemocell/steam-web-apiComposer loads the package through PSR-4 under the TeemoCell\SteamWebApi namespace.
Create a key at steamcommunity.com/dev/apikey. Keep it on the server and do not commit it to Git.
For framework-independent PHP, pass the key directly:
use TeemoCell\SteamWebApi\Client;
$steam = new Client(apiKey: $_ENV['STEAM_API_KEY']);For Laravel, add it to .env:
STEAM_API_KEY=your-key-hereLaravel package discovery registers the service provider automatically. See Laravel integration for dependency injection, the facade and configuration publishing.
git clone https://github.com/TeemoCell/SteamWebAPI.git
cd SteamWebAPI
composer installCopy .env.example to .env only when live API tests are needed. Offline tests do not require a real key.
Documentation for teemocell/steam-web-api · Licensed under the MIT License