eliuflorez/steam-auth
Larablocks Analysis
eliuflorez/steam-auth works with Laravel 5 (latest release 1.0, Jan 23, 2016), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Jan 23, 2016)
- 0 downloads a month (needs 10,000)
- 1 GitHub star (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jan 23, 2016.
- No releases in the last 12 months.
- First released: Jan 23, 2016.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 25, 2026.
| Install | |
|---|---|
composer require eliuflorez/steam-auth |
|
| Latest Version: | 1.0 |
| PHP: | >=5.4.0 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Jan 23, 2016 |
| Links: | GitHub · Packagist |
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
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
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
}
}
}
Related Packages
The auth package to make authentication in your laravel applications easy to use...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0 | >=5.4.0 | 5.* | MIT |