{"id":39287193,"url":"https://github.com/invisnik/laravel-steam-auth","last_synced_at":"2026-01-18T01:11:42.784Z","repository":{"id":28784316,"uuid":"32307015","full_name":"invisnik/laravel-steam-auth","owner":"invisnik","description":"Laravel Steam Auth","archived":false,"fork":false,"pushed_at":"2024-04-25T16:57:44.000Z","size":116,"stargazers_count":172,"open_issues_count":11,"forks_count":70,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-12-10T06:48:05.621Z","etag":null,"topics":["laravel-steam","php","steam-api","steam-authentication"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/invisnik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-16T06:59:29.000Z","updated_at":"2025-12-09T22:18:17.000Z","dependencies_parsed_at":"2024-06-18T21:11:04.924Z","dependency_job_id":"20d80356-9ce1-497f-bfbc-917512a557b2","html_url":"https://github.com/invisnik/laravel-steam-auth","commit_stats":{"total_commits":115,"total_committers":24,"mean_commits":4.791666666666667,"dds":0.5565217391304348,"last_synced_commit":"94a0ef489932615612ddb745b3be3ff679afa209"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/invisnik/laravel-steam-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invisnik%2Flaravel-steam-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invisnik%2Flaravel-steam-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invisnik%2Flaravel-steam-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invisnik%2Flaravel-steam-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invisnik","download_url":"https://codeload.github.com/invisnik/laravel-steam-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invisnik%2Flaravel-steam-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28525712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"ssl_error","status_checked_at":"2026-01-18T00:39:39.467Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel-steam","php","steam-api","steam-authentication"],"created_at":"2026-01-18T01:11:38.507Z","updated_at":"2026-01-18T01:11:42.762Z","avatar_url":"https://github.com/invisnik.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Steam authentication for Laravel\n[![Code Climate](https://codeclimate.com/github/invisnik/laravel-steam-auth/badges/gpa.svg)](https://codeclimate.com/github/invisnik/laravel-steam-auth)\n[![Latest Stable Version](https://img.shields.io/packagist/v/invisnik/laravel-steam-auth.svg)](https://packagist.org/packages/invisnik/laravel-steam-auth)\n[![Total Downloads](https://img.shields.io/packagist/dt/invisnik/laravel-steam-auth.svg)](https://packagist.org/packages/invisnik/laravel-steam-auth)\n[![License](https://img.shields.io/github/license/invisnik/laravel-steam-auth.svg)](https://packagist.org/packages/invisnik/laravel-steam-auth)\n\nThis 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.\n\n## Requirements\n * PHP 7.2+\n * Laravel 5.8+\n\n## Installation\n#### Via Composer\n```bash\ncomposer require invisnik/laravel-steam-auth\n```\n\n#### Steam API Key\n\nAdd your Steam API key to your `.env` file. You can get your API key [here](http://steamcommunity.com/dev/apikey).\n\n```\nSTEAM_API_KEY=SomeKindOfAPIKey\n```\n\n#### Config Files\n\nPublish the config file.\n\n```\nphp artisan vendor:publish --provider=\"Invisnik\\LaravelSteamAuth\\SteamServiceProvider\"\n```\n## Usage example\nIn `config/steam-auth.php`:\n```php\nreturn [\n\n    /*\n     * Redirect URL after login\n     */\n    'redirect_url' =\u003e '/auth/steam/handle',\n    /*\n     * Realm override. Bypass domain ban by Valve. \n     * Use alternative domain with redirection to main for authentication (banned by valve).\n     */\n    // 'realm' =\u003e 'redirected.com',\n    /*\n     *  API Key (set in .env file) [http://steamcommunity.com/dev/apikey]\n     */\n    'api_key' =\u003e env('STEAM_API_KEY', ''),\n    /*\n     * Is using https?\n     */\n    'https' =\u003e false,\n];\n\n```\nIn `routes/web.php`:\n```php\nRoute::get('auth/steam', 'AuthController@redirectToSteam')-\u003ename('auth.steam');\nRoute::get('auth/steam/handle', 'AuthController@handle')-\u003ename('auth.steam.handle');\n```\n**Note:** if you want to keep using Laravel's default logout route, add the following as well:\n```php\nRoute::post('logout', 'Auth\\LoginController@logout')-\u003ename('logout');\n```\nIn `AuthController`:\n```php\nnamespace App\\Http\\Controllers;\n\nuse Invisnik\\LaravelSteamAuth\\SteamAuth;\nuse App\\User;\nuse Auth;\n\nclass AuthController extends Controller\n{\n    /**\n     * The SteamAuth instance.\n     *\n     * @var SteamAuth\n     */\n    protected $steam;\n\n    /**\n     * The redirect URL.\n     *\n     * @var string\n     */\n    protected $redirectURL = '/';\n\n    /**\n     * AuthController constructor.\n     * \n     * @param SteamAuth $steam\n     */\n    public function __construct(SteamAuth $steam)\n    {\n        $this-\u003esteam = $steam;\n    }\n\n    /**\n     * Redirect the user to the authentication page\n     *\n     * @return \\Illuminate\\Http\\RedirectResponse|\\Illuminate\\Routing\\Redirector\n     */\n    public function redirectToSteam()\n    {\n        return $this-\u003esteam-\u003eredirect();\n    }\n\n    /**\n     * Get user info and log in\n     *\n     * @return \\Illuminate\\Http\\RedirectResponse|\\Illuminate\\Routing\\Redirector\n     */\n    public function handle()\n    {\n        if ($this-\u003esteam-\u003evalidate()) {\n            $info = $this-\u003esteam-\u003egetUserInfo();\n\n            if (!is_null($info)) {\n                $user = $this-\u003efindOrNewUser($info);\n\n                Auth::login($user, true);\n\n                return redirect($this-\u003eredirectURL); // redirect to site\n            }\n        }\n        return $this-\u003eredirectToSteam();\n    }\n\n    /**\n     * Getting user by info or created if not exists\n     *\n     * @param $info\n     * @return User\n     */\n    protected function findOrNewUser($info)\n    {\n        $user = User::where('steamid', $info-\u003esteamID64)-\u003efirst();\n\n        if (!is_null($user)) {\n            return $user;\n        }\n\n        return User::create([\n            'username' =\u003e $info-\u003epersonaname,\n            'avatar' =\u003e $info-\u003eavatarfull,\n            'steamid' =\u003e $info-\u003esteamID64\n        ]);\n    }\n}\n\n```\n\nShould you wish to use a login redirection URL that is differant from the one you specified in the config\n\n```php\n// Inside your controller login method\n$this-\u003esteam-\u003esetRedirectUrl(route('login.route'));\n\n...\n\nreturn $this-\u003esteam-\u003eredirect();\n```\n\nIf you need another steamID you can use another package to convert the given steamID64 to another type like [xPaw/SteamID](https://github.com/xPaw/SteamID.php).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvisnik%2Flaravel-steam-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvisnik%2Flaravel-steam-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvisnik%2Flaravel-steam-auth/lists"}