PHPackages                             diepfeiffe/laravel-steam-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. diepfeiffe/laravel-steam-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

diepfeiffe/laravel-steam-auth
=============================

Steam Auth for Laravel

1.0.0(3y ago)014MITPHPPHP ^7.2|^8.0

Since Mar 5Pushed 3y agoCompare

[ Source](https://github.com/DiePfeiffe/laravel-steam-auth)[ Packagist](https://packagist.org/packages/diepfeiffe/laravel-steam-auth)[ RSS](/packages/diepfeiffe-laravel-steam-auth/feed)WikiDiscussions master Synced 1mo ago

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

Steam Auth for Laravel
======================

[](#steam-auth-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/4bb49b6a9354af8aa224f385322084d9ad942e4c504ff7e54f024c0e29cadc5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696c7a72762f6c61726176656c2d737465616d2d617574682e737667)](https://packagist.org/packages/ilzrv/laravel-steam-auth)[![Total Downloads](https://camo.githubusercontent.com/efac2de4c6b38eec219491c7d633171993b45bc6c15fa4c083cbc7092129b0c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696c7a72762f6c61726176656c2d737465616d2d617574682e737667)](https://packagist.org/packages/ilzrv/laravel-steam-auth)[![License](https://camo.githubusercontent.com/b29aec58952f473a2ef68473e364f82d76e4ae5fea4016cc93562a6dd1c42434/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f696c7a72762f6c61726176656c2d737465616d2d617574682e737667)](https://packagist.org/packages/ilzrv/laravel-steam-auth)

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

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

[](#requirements)

- Laravel 7+

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

[](#installation)

#### Install the package

[](#install-the-package)

```
composer require ilzrv/laravel-steam-auth
```

#### Publish the config file

[](#publish-the-config-file)

```
php artisan vendor:publish --provider="Ilzrv\LaravelSteamAuth\ServiceProvider"
```

#### Setup Steam API Key(s)

[](#setup-steam-api-keys)

Add your Steam API key to your `.env` file. You can find it [here](https://steamcommunity.com/dev/apikey).

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

```
STEAM_AUTH_API_KEYS=YourSteamApiKey1,YourSteamApiKey2

```

Tips
----

[](#tips)

#### PendingRequest Settings

[](#pendingrequest-settings)

You can use any of the Laravel PendingRequest settings. Proxies and retries for example

```
public function __construct(Request $request)
{
    $pendingRequest = \Illuminate\Support\Facades\Http::withOptions([
        'proxy' => 'http://username:password@ip',
        'connect_timeout' => 10,
    ])->retry(3);

    $this->steamAuth = new SteamAuth($request, $pendingRequest);
}
```

#### Proxy Domain

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

```
