PHPackages                             eliuflorez/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. eliuflorez/steam-auth

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

eliuflorez/steam-auth
=====================

Laravel Steam Auth

1.0(10y ago)117MITPHPPHP &gt;=5.4.0

Since Jan 23Pushed 10y ago1 watchersCompare

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

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

This package is a Laravel 5 service provider which provides support for Steam OpenID and is very easy to integrate with any project that requires Steam authentication.

Installation Via Composer
-------------------------

[](#installation-via-composer)

Add this to your `composer.json` file, in the require object:

```
"eliuflorez/steam-auth": "1.*"
```

After that, run `composer install` to install the package.

Add the service provider to `app/config/app.php`, within the `providers` array.

```
'providers' => [
	// ...
	EliuFlorez\SteamAuth\SteamServiceProvider::class,
]
```

Lastly, publish the config file.

```
php artisan vendor:publish

```

Usage example
-------------

[](#usage-example)

In `config/steam-auth.php`

```
return [

    /*
     * Redirect URL after login
     */
    'redirect_url' => '/login',

    /*
     *  API Key (http://steamcommunity.com/dev/apikey)
     */
    'api_key' => 'Your API Key'

];
```

In `routes.php`

```
get('login', 'AuthController@login');
```

In `AuthController`

```
namespace App\Http\Controllers;

use EliuFlorez\SteamAuth\SteamAuth;
use App\User;
use Auth;

class AuthController extends Controller
{

    /**
     * @var SteamAuth
     */
    private $steam;

    public function __construct(SteamAuth $steam)
    {
        $this->steam = $steam;
    }

    public function login()
    {
        if ($this->steam->validate()) {
            $info = $this->steam->getUserInfo();
            if (! is_null($info)) {
                $user = User::where('steamid', $info->getSteamID64())->first();
                if (!is_null($user)) {
                    Auth::login($user, true);
                    return redirect('/'); // redirect to site
                }else{
                    $user = User::create([
                        'username' => $info->getNick(),
                        'avatar'   => $info->getProfilePictureFull(),
                        'steamid'  => $info->getSteamID64()
                    ]);
                    Auth::login($user, true);
                    return redirect('/'); // redirect to site
                }
            }
        } else {
            return $this->steam->redirect(); // redirect to Steam login page
        }
    }
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

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

3759d ago

### Community

Maintainers

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

---

Tags

laravelauthsteam

### Embed Badge

![Health badge](/badges/eliuflorez-steam-auth/health.svg)

```
[![Health](https://phpackages.com/badges/eliuflorez-steam-auth/health.svg)](https://phpackages.com/packages/eliuflorez-steam-auth)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M344](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M52](/packages/php-open-source-saver-jwt-auth)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)[invisnik/laravel-steam-auth

Laravel Steam Auth

171160.6k1](/packages/invisnik-laravel-steam-auth)[jurager/teams

Laravel package to manage team functionality and operate with user permissions.

22817.3k](/packages/jurager-teams)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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