-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
The package supports PHP 8.2 and newer. Laravel integration requires Laravel 12.61.1 or newer, or Laravel 13.12.0 or newer. 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