laravel-steam-login maintained by kanalumaddela
Last update
2023/04/19 22:50
License
Require
- php ^7.2.5|^8.0
- ext-json *
- ext-libxml *
- ext-simplexml *
- guzzlehttp/guzzle ^6.3|^7.0
- xpaw/steamid ^2.0
Last update
2023/02/02 11:29
License
Require
- php ^7.2.5|^8.0
- ext-json *
- ext-libxml *
- ext-simplexml *
- guzzlehttp/guzzle ^6.3|^7.0
- xpaw/steamid ^2.0
Last update
2022/06/21 19:25
License
Require
- php ^7.2.5|^8.0
- ext-json *
- ext-libxml *
- ext-simplexml *
- guzzlehttp/guzzle ^6.3|^7.0
- xpaw/steamid ^2.0
Last update
2021/11/14 00:24
License
Require
- ext-json *
- ext-libxml *
- ext-simplexml *
- php ^7.2.5|^8.0
- guzzlehttp/guzzle ^6.3|^7.0
- xpaw/steamid ^2.0
Last update
2021/01/30 07:02
License
Require
- php ^7.3|^8.0
- ext-json *
- ext-libxml *
- ext-simplexml *
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.5.5|^7.0.1
Last update
2019/12/07 08:18
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2019/04/28 08:58
License
Require
- php ^7.0
- ext-curl *
- ext-json *
- ext-libxml *
- ext-simplexml *
- laravel/framework 5.5.x|5.6.x
Last update
2019/04/28 08:58
License
Require
- php ^7.0
- ext-curl *
- ext-json *
- ext-libxml *
- ext-simplexml *
- laravel/framework 5.5.x|5.6.x
Last update
2019/04/28 02:19
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2019/04/28 02:16
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2019/03/03 19:54
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2019/03/03 19:45
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2019/03/03 16:59
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2019/01/10 07:09
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2019/01/09 04:53
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2019/01/08 02:10
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2018/10/15 03:42
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2018/10/13 08:37
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2018/10/11 22:23
License
Require
- php ^7.0
- ext-curl *
- illuminate/http 5.*
- illuminate/routing 5.*
- illuminate/support 5.*
Last update
2018/10/11 02:27
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid dev-master
- guzzlehttp/guzzle ^6.3
Last update
2018/10/09 06:09
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid *
- guzzlehttp/guzzle ^6.3
Last update
2018/10/09 05:46
License
Require
- php ^7.1
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid *
- guzzlehttp/guzzle ^6.3
Last update
2018/10/08 21:09
License
Require
- php ^7.1
- ext-curl *
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid *
- guzzlehttp/guzzle ^6.3
Last update
2018/10/07 22:33
License
Require
- php ^7.1
- ext-curl *
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid *
- guzzlehttp/guzzle ^6.3
Last update
2018/10/07 21:55
License
Require
- php ^7.1
- ext-curl *
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid *
- guzzlehttp/guzzle ^6.3
Last update
2018/10/07 20:54
License
Require
- php ^7.1
- ext-curl *
- ext-json *
- ext-libxml *
- ext-simplexml *
- illuminate/http ^5.6
- illuminate/routing ^5.6
- illuminate/support ^5.6
- illuminate/container ^5.6
- xpaw/steamid *
- guzzlehttp/guzzle ^6.3
Last update
2018/04/11 00:59
License
Require
- php ^7.0
- ext-bcmath *
- ext-curl *
- illuminate/http 5.*
- illuminate/routing 5.*
- illuminate/support 5.*
Last update
2018/04/06 01:26
License
Require
- php ^7.0
- ext-bcmath *
- ext-curl *
- illuminate/http 5.*
- illuminate/routing 5.*
- illuminate/support 5.*
Last update
2018/04/06 01:26
License
Require
- php ^7.0
- ext-bcmath *
- ext-curl *
- illuminate/http 5.*
- illuminate/routing 5.*
- illuminate/support 5.*
Last update
2018/02/18 04:15
License
Require
- php ^7.0
- ext-bcmath *
- ext-curl *
- illuminate/http 5.*
- illuminate/routing 5.*
- illuminate/support 5.*
Last update
2018/02/16 15:18
License
Require
- php ^7.0
- ext-bcmath *
- ext-curl *
- illuminate/http 5.*
- illuminate/routing 5.*
- illuminate/support 5.*
Last update
2018/02/16 15:03
License
Require
- php ^7.0
- ext-bcmath *
- ext-curl *
- illuminate/http 5.*
- illuminate/routing 5.*
- illuminate/support 5.*
Last update
2018/02/16 14:57
License
Require
- php ^7.0
- ext-bcmath *
- ext-curl *
- illuminate/http 5.*
- illuminate/routing 5.*
- illuminate/support 5.*
Last update
2018/02/05 08:46
License
Require
- php ^7.0
- ext-bcmath *
- ext-curl *
- illuminate/http 5.*
- illuminate/routing 5.*
- illuminate/support 5.*
Last update
2018/02/05 03:53
License
Require
- php ^7.0
- ext-bcmath *
- ext-curl *
- illuminate/http 5.*
- illuminate/routing 5.*
- illuminate/support 5.*
Last update
2018/01/31 05:01
License
Require
- php ^7.0
- ext-bcmath *
- illuminate/http 5.*
- illuminate/routing 5.*
- illuminate/support 5.*
Steam Login/Auth for Laravel/Lumen 5.5+ / 6.x+ / 7.x+ / 8.x+
Make sure you have made/performed the appropriate migrations. I suggest doing whatever works best for you, but certain suggestions should be followed to avoid trouble.
| Version | PHP Version | Laravel/Lumen Version | Docs |
|---|---|---|---|
| 1.x | 7.0+ | 5.5+ | Docs |
| 2.x | 7.1+ | 5.6+ | Docs |
| 3.x | 7.2+ | 6.0+ / 7.0+ / 8.0+ | Docs (I/P) |
Features
- Laravel/Lumen supported
- Optionally redirect users to the previous page before logging in
- Included abstract controller and routes for easy setup
SteamUserclass to easily retrieve a player's data
[3.x / 2.x] Quick Setup
- Install library
composer require kanalumaddela/laravel-steam-login
- Publish files
php artisan vendor:publish --force --provider kanalumaddela\LaravelSteamLogin\SteamLoginServiceProvider
- Create Controller
php artisan make:controller Auth\SteamLoginController
- Add routes
routes/web.php
use App\Http\Controllers\Auth\SteamLoginController;
use kanalumaddela\LaravelSteamLogin\Facades\SteamLogin;
//...
// If using steam login only, add ['include_login_route' => true]
// to also add a /login route,
SteamLogin::routes([
'controller' => SteamLoginController::class,
]);
- Edit Controller
App\Http\Controllers\Auth\SteamLoginController.php
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use kanalumaddela\LaravelSteamLogin\Http\Controllers\AbstractSteamLoginController;
use kanalumaddela\LaravelSteamLogin\SteamUser;
class SteamLoginController extends AbstractSteamLoginController
{
/**
* {@inheritdoc}
*/
public function authenticated(Request $request, SteamUser $steamUser)
{
// auth logic goes here, below assumes User model with `steam_account_id` attribute
// $user = User::where('steam_account_id', $steamUser->accountId)->first();
// \Illuminate\Support\Facades\Auth::login($user);
}
}
Credits
Thanks to these libs which led me to make this
- https://github.com/Ehesp/Steam-Login (Parts of code used and re-purposed for laravel)
- https://github.com/invisnik/laravel-steam-auth (Getting me to create a laravel steam auth/login that isn't bad)