{"id":13703987,"url":"https://github.com/vikas5914/steam-auth","last_synced_at":"2025-03-17T15:12:35.504Z","repository":{"id":21709842,"uuid":"93834402","full_name":"vikas5914/steam-auth","owner":"vikas5914","description":"A simple PHP Steam login and User Detail package","archived":false,"fork":false,"pushed_at":"2025-02-12T14:34:48.000Z","size":16,"stargazers_count":17,"open_issues_count":2,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-11T07:17:38.419Z","etag":null,"topics":["composer","login","php","steam","steam-api","steam-auth","steam-authentication","steam-client","steam-login","steambot"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vikas5914.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-09T08:01:23.000Z","updated_at":"2025-02-12T14:33:31.000Z","dependencies_parsed_at":"2022-08-07T10:01:07.705Z","dependency_job_id":null,"html_url":"https://github.com/vikas5914/steam-auth","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikas5914%2Fsteam-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikas5914%2Fsteam-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikas5914%2Fsteam-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikas5914%2Fsteam-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vikas5914","download_url":"https://codeload.github.com/vikas5914/steam-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056425,"owners_count":20390719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["composer","login","php","steam","steam-api","steam-auth","steam-authentication","steam-client","steam-login","steambot"],"created_at":"2024-08-02T21:01:02.632Z","updated_at":"2025-03-17T15:12:35.479Z","avatar_url":"https://github.com/vikas5914.png","language":"PHP","funding_links":[],"categories":["Packages"],"sub_categories":["PHP"],"readme":"# Steam authentication and User Details\n[![Latest Stable Version](https://poser.pugx.org/vikas5914/steam-auth/v/stable)](https://packagist.org/packages/vikas5914/steam-auth) [![Total Downloads](https://poser.pugx.org/vikas5914/steam-auth/downloads)](https://packagist.org/packages/vikas5914/steam-auth) [![License](https://poser.pugx.org/vikas5914/steam-auth/license)](https://packagist.org/packages/vikas5914/steam-auth) [![GitHub issues](https://img.shields.io/github/issues/vikas5914/steam-auth.svg)](https://github.com/vikas5914/steam-auth/issues) [![Packagist](https://img.shields.io/packagist/dd/vikas5914/steam-auth.svg)](https://packagist.org/packages/vikas5914/steam-auth) \n\nThis package enables you to easily log users in via Steam and get user details , using their OpenID service. However, this package does not require that you have the OpenID PHP module installed!\n\n## Installation Via Composer\n\nAdd this to your `composer.json` file, in the require object:\n\n```javascript\n\"vikas5914/steam-auth\": \"1.*\"\n```\n\nAfter that, run `composer install` to install the package.\n#### OR\n```javascript\ncomposer require vikas5914/steam-auth:1.*\n```\n## Usage example\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\n$config = array(\n    'apikey' =\u003e 'xxxxxxxxxxxxxxxxx', // Steam API KEY\n    'domainname' =\u003e 'http://localhost:3000', // Displayed domain in the login-screen\n    'loginpage' =\u003e 'http://localhost:3000/index.php', // Returns to last page if not set\n    \"logoutpage\" =\u003e \"\",\n    \"skipAPI\" =\u003e false, // true = dont get the data from steam, just return the steamid64\n);\n\n$steam = new Vikas5914\\SteamAuth($config);\n\nif ($steam-\u003eloggedIn()) {\n    echo \"Hello \" . $steam-\u003epersonaname . \"!\";\n    echo \"\u003ca href='\" . $steam-\u003elogout() . \"'\u003eLogout\u003c/a\u003e\";\n} else {\n    echo \"\u003ca href='\" . $steam-\u003eloginUrl() . \"'\u003eLogin\u003c/a\u003e\";\n}\n```\n\nUser-Data is accessible through `$steam-\u003evarName;` You can find a basic list of variables in the demo file or a more advanced one in the code.\n\nCheck if the user is logged in with `$steam-\u003eloggedIn();` (Will return true or false)\n\n## Planned\n 1. Test Case\n 2. Better ReadMe\n\n## Legal stuff\n\nIf you choose to use the steam web-api you need to follow the Steam Web API Terms of Use found at http://steamcommunity.com/dev/apiterms\n\nThe marked code is taken from Syntax_Error's \"Ultra Simple Steam-Login\" Class found at http://forums.steampowered.com/forums/showthread.php?t=1430511\n\n\n[![forthebadge](http://forthebadge.com/images/badges/you-didnt-ask-for-this.svg)](http://forthebadge.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikas5914%2Fsteam-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikas5914%2Fsteam-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikas5914%2Fsteam-auth/lists"}