2017 © Pedro Peláez
 

library laravel-steam-login

Steam Login package for Laravel 5.5+

image

kanalumaddela/laravel-steam-login

Steam Login package for Laravel 5.5+

  • Sunday, April 15, 2018
  • by kanalumaddela
  • Repository
  • 3 Watchers
  • 2 Stars
  • 104 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 12 Versions
  • 46 % Grown

The README.md

Steam Login/Auth for Laravel/Lumen 5.5+ / 6.x+ / 7.x+ / 8.x+

Maintainability Packagist Packagist version PHP from Packagist GitHub stars GitHub forks GitHub issues GitHub license, (*1)

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., (*2)

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

  1. Install library
composer require kanalumaddela/laravel-steam-login
  1. Publish files
php artisan vendor:publish --force --provider kanalumaddela\LaravelSteamLogin\SteamLoginServiceProvider
  1. Create Controller
php artisan make:controller Auth\SteamLoginController
  1. 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,
]);
  1. 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, (*3)

  • 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)

The Versions

15/04 2018

dev-master

9999999-dev

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth login steam

11/04 2018

1.x-dev

1.9999999.9999999.9999999-dev

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth login steam

11/04 2018

1.4

1.4.0.0

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth login steam

06/04 2018

1.3.0

1.3.0.0

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth login steam

06/04 2018

1.3.1

1.3.1.0

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth login steam

18/02 2018

1.2.3

1.2.3.0

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth login steam

16/02 2018

1.2.2

1.2.2.0

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth login steam

16/02 2018

1.1.1

1.1.1.0

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth login steam

16/02 2018

1.1.0

1.1.0.0

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth login steam

05/02 2018

1.0.3

1.0.3.0

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth login steam

05/02 2018

1.0.2

1.0.2.0

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth login steam

31/01 2018

1.0.0

1.0.0.0

Steam Login package for Laravel 5.5+

  Sources   Download

MIT

The Requires

 

laravel auth steam