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 3w 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 36% 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

3805d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/784787?v=4)[Eliu Florez](/maintainers/EliuFlorez)[@EliuFlorez](https://github.com/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

[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

83910.6M60](/packages/php-open-source-saver-jwt-auth)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5742.2M17](/packages/directorytree-ldaprecord-laravel)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.2M3](/packages/auth0-login)[invisnik/laravel-steam-auth

Laravel Steam Auth

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

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

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

Laravel Socialite provider for Steam OpenID.

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

PHPackages © 2026

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