New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ilzrv/laravel-steam-auth

Steam Auth for Laravel
14,583 19

Larablocks Analysis

ilzrv/laravel-steam-auth works with Laravel 12 and 13 (latest release v4.0.0, Sep 9, 2026).

Laravel 7 to 11 in earlier releases.

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Sep 9, 2026)
  • 424 downloads a month (needs 10,000)
  • 19 GitHub stars (needs 100)

State

Maintained
  • Last stable release: Sep 9, 2026.
  • 1 release in the last 12 months.
  • First released: Apr 5, 2020.
  • Monthly downloads: 424.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.

Install
composer require ilzrv/laravel-steam-auth
Latest Version:v4.0.0
PHP:^8.3
Laravel:12 · 13
Older releases:7 – 11
License:MIT
Last Updated:Sep 9, 2026
Links: GitHub  ·  Packagist
Maintainer: ilzrv

Steam Auth for Laravel

Latest Stable Version Total Downloads GitHub Workflow Status Codecov License

Package allows you to implement Steam authentication in your Laravel project.

Requirements

  • Laravel 12 or 13
  • PHP 8.3+

Installation

Install the package
composer require ilzrv/laravel-steam-auth
Publish the config file
php artisan vendor:publish --provider="Ilzrv\LaravelSteamAuth\ServiceProvider"
Setup Steam API Key(s)

Add your Steam API key to your .env file. You can find it here.

if you want to use multiple API keys just list them separated by commas

STEAM_AUTH_API_KEYS=YourSteamApiKey1,YourSteamApiKey2

Tips

Client Settings

You can use any settings that your client supports, for example, a Guzzle Proxy:

<?php

declare(strict_types=1);

use GuzzleHttp\Client;
use GuzzleHttp\Psr7\HttpFactory;
use Illuminate\Http\Request;
use Ilzrv\LaravelSteamAuth\SteamAuthenticator;

public function __invoke(
    Request $request,
    HttpFactory $httpFactory,
): RedirectResponse {
    $client = new Client([
        'proxy' => 'socks5://user:password@192.168.1.1:1080',
    ]);

    $steamAuthenticator = new SteamAuthenticator(
        new Uri($request->getUri()),
        $client,
        $httpFactory,
    );
    
    // Continuation of your code...
}
Proxy Domain

If you want to make a proxy domain. Update redirect_url inside steam-auth.php to your absolute address like https://auth.test/login. You can use different domains for the local environment and for production like this:

<?php

declare(strict_types=1);

return [
    'redirect_url' => env('APP_ENV', 'production') == 'production'
        ? 'https://auth.test/login'
        : null,
];

In the NGINX settings for proxy domain, you can specify the following:

server {
    listen 443 ssl http2;
    server_name auth.test;
    return 301 https://general.test$uri$is_args$args;
}

Basic example

In routes/web.php:

Route::get('login', \App\Http\Controllers\Auth\SteamAuthController::class);

Create a controller SteamAuthController.php:

<?php

declare(strict_types=1);

namespace App\Http\Controllers\Auth;

use App\Models\User;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\HttpFactory;
use GuzzleHttp\Psr7\Uri;
use Illuminate\Auth\AuthManager;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Routing\Redirector;
use Ilzrv\LaravelSteamAuth\Exceptions\Authentication\SteamResponseNotValidAuthenticationException;
use Ilzrv\LaravelSteamAuth\Exceptions\Validation\ValidationException;
use Ilzrv\LaravelSteamAuth\SteamAuthenticator;
use Ilzrv\LaravelSteamAuth\SteamUserDto;

final class SteamAuthController
{
    public function __invoke(
        Request $request,
        Redirector $redirector,
        Client $client,
        HttpFactory $httpFactory,
        AuthManager $authManager,
    ): RedirectResponse {
        $steamAuthenticator = new SteamAuthenticator(
            new Uri($request->getUri()),
            $client,
            $httpFactory,
        );

        try {
            $steamAuthenticator->auth();
        } catch (ValidationException|SteamResponseNotValidAuthenticationException) {
            return $redirector->to(
                $steamAuthenticator->buildAuthUrl()
            );
        }

        $steamUser = $steamAuthenticator->getSteamUser();

        $authManager->login(
            $this->firstOrCreate($steamUser),
            true
        );

        return $redirector->to('/');
    }

    private function firstOrCreate(SteamUserDto $steamUser): User
    {
        return User::firstOrCreate([
            'steam_id' => $steamUser->getSteamId(),
        ], [
            'name' => $steamUser->getPersonaName(),
            'avatar' => $steamUser->getAvatarFull(),
            'player_level' => $steamUser->getPlayerLevel(),
            // ...and other what you need
        ]);
    }
}

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
v4.0.0 ^8.3 ^12.0|^13.0 MIT
v3.2.0 ^8.1 ^9.0|^10.0|^11.0|^12.0 MIT
v3.1.0 ^8.1 ^9.0|^10.0|^11.0 MIT
v3.0.0 ^8.1 ^9.0|^10.0 MIT
v2.3.0 ^7.2|^8.0 ^7.0|^8.0|^9.0|^10.0 MIT
Pre-releases (8)
Version Released PHP Laravel License
v3.0.0-rc4 ^8.1 ^9.0|^10.0 MIT
v3.0.0-rc3 ^8.1 ^9.0|^10.0 MIT
v3.0.0-rc2 ^8.1 ^9.0|^10.0 MIT
v3.0.0-rc1 ^8.1 ^9.0|^10.0 MIT
v3.0.0-beta ^8.1 ^9.0|^10.0 MIT