| Package Data | |
|---|---|
| Maintainer Username: | kanazaca |
| Maintainer Contact: | kanazaca118@hotmail.com (Hugo Neto) |
| Package Create Date: | 2015-03-25 |
| Package Last Update: | 2015-08-09 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-27 15:02:54 |
| Package Statistics | |
|---|---|
| Total Downloads: | 57 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 2 |
| Total Watchers: | 3 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
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.
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
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
}
}
}