PHPackages                             fkrzski/laravel-steam-api-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. fkrzski/laravel-steam-api-sdk

ActiveLibrary[API Development](/categories/api)

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.

0.1.0(yesterday)05↑2900%MITPHPPHP ^8.5.0

Since Jun 11Pushed yesterdayCompare

[ Source](https://github.com/fkrzski/laravel-steam-api-sdk)[ Packagist](https://packagist.org/packages/fkrzski/laravel-steam-api-sdk)[ GitHub Sponsors](https://github.com/fkrzski)[ RSS](/packages/fkrzski-laravel-steam-api-sdk/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

Laravel Steam API SDK
=====================

[](#laravel-steam-api-sdk)

[![Banner of Laravel Steam API SDK](art/banner.png)](art/banner.png)

[![License](https://camo.githubusercontent.com/fd735a786e6c768b43d39de5a427a2347fc5e33c9a568786fdd5af1b80c1aec8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f666b727a736b692f6c61726176656c2d737465616d2d6170692d73646b2e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/fkrzski/laravel-steam-api-sdk)[![Latest Version on Packagist](https://camo.githubusercontent.com/436abd931d04b527a529e05b0580fc8905f803f26f1696a77b9244ad2692ea10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666b727a736b692f6c61726176656c2d737465616d2d6170692d73646b2e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/fkrzski/laravel-steam-api-sdk)[![Total Downloads](https://camo.githubusercontent.com/493691d43e166edb0d353e64a004e43484104b8a14e7601196e13663857c4e37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666b727a736b692f6c61726176656c2d737465616d2d6170692d73646b2e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/fkrzski/laravel-steam-api-sdk)[![Tests](https://camo.githubusercontent.com/becf7ee80719459567e5cf11d94c35e3a5316df7b1523927a0a5db4c6703451c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f666b727a736b692f6c61726176656c2d737465616d2d6170692d73646b2f74657374732e796d6c3f6272616e63683d6d6173746572266c6162656c3d7465737473267374796c653d666f722d7468652d6261646765)](https://github.com/fkrzski/laravel-steam-api-sdk/actions/workflows/tests.yml)

Laravel bridge for [`fkrzski/php-steam-api-sdk`](https://github.com/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](https://steamcommunity.com/dev) the Laravel way.

- Auto-discovered `SteamConnector` singleton, Octane-safe.
- Rate-limit budget shared across processes through the Laravel cache store.
- Fluent `Steam` facade with first-class request helpers.
- One-liner test fakes via Saloon's `MockClient`.

Requirements
------------

[](#requirements)

- PHP **8.5+**
- Laravel **13+**

Installation
------------

[](#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
```

Usage
-----

[](#usage)

```
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');
```

DTOs, the `SteamId` value object and the exception hierarchy all come from the underlying SDK — see its [README](https://github.com/fkrzski/php-steam-api-sdk) for the full surface.

### Concurrent requests

[](#concurrent-requests)

Use `pool()` to fan out several requests at once:

```
use Fkrzski\LaravelSteamApiSdk\Facades\Steam;
use Fkrzski\SteamApiSdk\Http\Requests\GetOwnedGamesRequest;
use Fkrzski\SteamApiSdk\Http\Requests\GetPlayerSummariesRequest;
use Saloon\Http\Response;

Steam::pool(
    requests: [
        new GetOwnedGamesRequest($id, [381210]),
        new GetPlayerSummariesRequest([$id]),
    ],
    concurrency: 2,
    responseHandler: fn (Response $response) => /* ... */,
)->send()->wait();
```

### Escape hatch

[](#escape-hatch)

Need the raw connector or a custom request? Reach for it directly:

```
Steam::connector();          // the underlying SteamConnector
Steam::send($customRequest); // any Saloon Request
```

Testing
-------

[](#testing)

`Steam::fake()` attaches a Saloon `MockClient` to the singleton connector and returns it for assertions:

```
use Fkrzski\LaravelSteamApiSdk\Facades\Steam;
use Fkrzski\SteamApiSdk\Http\Requests\GetPlayerSummariesRequest;
use Saloon\Http\Faking\MockResponse;

$mock = Steam::fake([
    GetPlayerSummariesRequest::class => MockResponse::make([
        'response' => ['players' => [/* ... */]],
    ]),
]);

// ... exercise code that calls the Steam API ...

$mock->assertSent(GetPlayerSummariesRequest::class);
```

License
-------

[](#license)

MIT. See [LICENSE.md](LICENSE.md).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance100

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/accf44fd0ffa5349a96edefe2daf51dc4475af31a01611acade1d44b35341d61?d=identicon)[fkrzski](/maintainers/fkrzski)

---

Tags

phplaravelsdksaloonsteamsteam api

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/fkrzski-laravel-steam-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/fkrzski-laravel-steam-api-sdk/health.svg)](https://phpackages.com/packages/fkrzski-laravel-steam-api-sdk)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.5k](/packages/larastan-larastan)[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

9782.1M154](/packages/laravel-ai)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816320.5k3](/packages/defstudio-telegraph)[moonshine/moonshine

Laravel administration panel

1.3k239.9k73](/packages/moonshine-moonshine)[saloonphp/laravel-plugin

The official Laravel plugin for Saloon

806.6M185](/packages/saloonphp-laravel-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
