{"id":19112905,"url":"https://github.com/chipslays/steam-client","last_synced_at":"2026-06-01T16:30:15.493Z","repository":{"id":62501858,"uuid":"312668037","full_name":"chipslays/steam-client","owner":"chipslays","description":"🎮 WIP: Steam Client for manage account, trade offers and more.","archived":false,"fork":false,"pushed_at":"2021-02-06T10:09:05.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T04:52:33.226Z","etag":null,"topics":["client","library","steam","steam-api"],"latest_commit_sha":null,"homepage":"","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/chipslays.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}},"created_at":"2020-11-13T19:41:24.000Z","updated_at":"2021-11-14T17:51:04.000Z","dependencies_parsed_at":"2022-11-02T09:46:31.828Z","dependency_job_id":null,"html_url":"https://github.com/chipslays/steam-client","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fsteam-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fsteam-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fsteam-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipslays%2Fsteam-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chipslays","download_url":"https://codeload.github.com/chipslays/steam-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240170056,"owners_count":19759141,"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":["client","library","steam","steam-api"],"created_at":"2024-11-09T04:34:29.406Z","updated_at":"2026-06-01T16:30:15.361Z","avatar_url":"https://github.com/chipslays.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WIP: PHP Steam Client \n \nWork in progress\n\n## Installation\n\n```bash\n$ composer require chipslays/steam-client\n```\n\n## Example\n\nSimple auth in CLI:\n```php\n// steam.php\n\nuse Steam\\Auth;\nuse Steam\\Client;\n\nrequire 'vendor/autoload.php';\n\n$client = new Client([\n    'username' =\u003e 'gaben',\n    'password' =\u003e 'hackmedaddy',\n    'sessionDir' =\u003e __DIR__ . '/storage/sessions',\n]);\n\n$tryAuthCount = 0;\n\nif (!$client-\u003eisLoggedIn()) {\n    $auth = $client-\u003eauth();\n    while ($auth['code'] !== Auth::SUCCESS) {\n         if (++$tryAuthCount \u003e= 5) {\n            throw new Exception('To many auth fails. For this you can get banned by IP if you continue.');\n        }\n        \n        switch ($auth['code']) {\n            case Auth::CAPTCHA:\n                cli()-\u003eyellow()-\u003eout($auth['response']-\u003eget('message'));\n                $captchaLink = $client-\u003egetCaptchaLink();\n                cli()-\u003eyellow()-\u003eout($captchaLink);\n                $input = cli()-\u003einput('\u003e\u003e\u003e Enter captcha code:');\n                $captchaResolveText = $input-\u003eprompt();\n                $client-\u003esetCaptchaText($captchaResolveText);\n                $auth = $client-\u003eauth();\n                break;\n    \n            case Auth::EMAIL:\n                $input = cli()-\u003einput('\u003e\u003e\u003e Enter e-mail code:');\n                $emailCode = $input-\u003eprompt();\n                $client-\u003esetEmailCode($emailCode);\n                $auth = $client-\u003eauth();\n                break;\n                \n            case Auth::TWO_FACTOR:\n                cli()-\u003eyellow()-\u003eout($auth['response']-\u003eget('message'));\n                $input = cli()-\u003einput('\u003e\u003e\u003e Enter 2FA code:');\n                $twoFactorCode = $input-\u003eprompt();\n                $client-\u003esetTwoFactorCode($twoFactorCode);\n                $auth = $client-\u003eauth();\n    \n            case Auth::FAIL:\n                print_r($auth);\n                throw new Exception('Fail auth.');\n                break;\n\n            case Auth::BAD_RSA:\n                throw new Exception('Fail RSA');\n                break;\n\n            case Auth::THROTTLE:\n                throw new Exception($auth['response']-\u003eget('message'));\n                break;\n\n            case Auth::UNEXPECTED:\n                print_r($auth);\n                throw new Exception('Unexpected error 1');\n                break;\n    \n            case Auth::BAD_CREDENTIALS:\n                cli()-\u003elightRed()-\u003eout($auth['response']-\u003eget('message'));\n                $input = cli()-\u003econfirm('Want to enter new credentials?');\n    \n                if (!$input-\u003econfirmed()) {\n                    cli()-\u003elightRed()-\u003eout('Client has been stopped.');\n                    exit;\n                }\n    \n                $username = cli()-\u003einput('\u003e\u003e\u003e Enter username:')-\u003eprompt();\n                $password = cli()-\u003epassword('\u003e\u003e\u003e Enter password:')-\u003eprompt();\n    \n                $client-\u003esetUsername($username);\n                $client-\u003esetPassword($password);\n                $auth = $client-\u003eauth();\n                break;\n    \n            default:\n                throw new Exception(\"Unexpected error 2\");\n                break;\n        }\n    }\n}\n\n/** We are now logged in */\n$balance = $client-\u003emarket()-\u003egetBalance();\nprint_r($balance);\n\n/** Output */\nArray\n(\n    [raw] =\u003e 13,37 pуб.\n    [clean] =\u003e 13.37\n)\n```\n\n```bash\nphp steam.php\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipslays%2Fsteam-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchipslays%2Fsteam-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipslays%2Fsteam-client/lists"}