kanazaca/laravel-steam-auth

Laravel Steam Auth
57 2
Install
composer require kanazaca/laravel-steam-auth
Latest Version:1.1.4
PHP:>=5.4.0
Laravel:5
License:MIT
Last Updated:Aug 9, 2015
Links: GitHub  ·  Packagist
Maintainer: kanazaca

Steam authentication for laravel 5

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

Installation Via Composer

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

"kanazaca/laravel-steam-auth": "1.1.*"

After that, run composer install to install the package.

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

'providers' => array(
	// ...
	'kanazaca\LaravelSteamAuth\SteamServiceProvider',
)

Lastly, publish the config file.

php artisan vendor:publish

Usage

use kanazaca\LaravelSteamAuth\SteamAuth;

class SteamController extends Controller {

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

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

	public function getLogin()
	{

        if( $this->steam->validate()){
            return  $this->steam->steamInfo;  //returns the user steam info
        }else{
            return  $this->steam->redirect(); //redirect to steam login page
        }
	}
}

Credits

  • invisnik (original maintainer)

Related Packages

eliuflorez/steam-auth

Laravel Steam Auth

17 1
masim-appcrates/laravel-authentication

My Custome Laravel Authentication

6 0
laravel/fortify

Backend controllers and scaffolding for Laravel authentication.

69,125,250 1,760
laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

43,967,044 3,058
devdojo/auth

The auth package to make authentication in your laravel applications easy to use...

266,014 622

Version History

Version Released PHP Laravel License
1.1.4 >=5.4.0 5.0.x MIT
1.1.1 >=5.4.0 5.0.x MIT
1.1.0 >=5.4.0 5.0.x MIT
v1.0.1 >=5.4.0 5.0.x MIT
v1.0.0 >=5.4.0 5.0.x MIT