PHPackages                             chipslays/steam-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. chipslays/steam-client

ActiveLibrary[API Development](/categories/api)

chipslays/steam-client
======================

Steam Client library for PHP.

0.0.7(5y ago)112MITPHP

Since Nov 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chipslays/steam-client)[ Packagist](https://packagist.org/packages/chipslays/steam-client)[ RSS](/packages/chipslays-steam-client/feed)WikiDiscussions main Synced yesterday

READMEChangelog (7)Dependencies (7)Versions (8)Used By (0)

WIP: PHP Steam Client
=====================

[](#wip-php-steam-client)

Work in progress

Installation
------------

[](#installation)

```
$ composer require chipslays/steam-client
```

Example
-------

[](#example)

Simple auth in CLI:

```
// steam.php

use Steam\Auth;
use Steam\Client;

require 'vendor/autoload.php';

$client = new Client([
    'username' => 'gaben',
    'password' => 'hackmedaddy',
    'sessionDir' => __DIR__ . '/storage/sessions',
]);

$tryAuthCount = 0;

if (!$client->isLoggedIn()) {
    $auth = $client->auth();
    while ($auth['code'] !== Auth::SUCCESS) {
         if (++$tryAuthCount >= 5) {
            throw new Exception('To many auth fails. For this you can get banned by IP if you continue.');
        }

        switch ($auth['code']) {
            case Auth::CAPTCHA:
                cli()->yellow()->out($auth['response']->get('message'));
                $captchaLink = $client->getCaptchaLink();
                cli()->yellow()->out($captchaLink);
                $input = cli()->input('>>> Enter captcha code:');
                $captchaResolveText = $input->prompt();
                $client->setCaptchaText($captchaResolveText);
                $auth = $client->auth();
                break;

            case Auth::EMAIL:
                $input = cli()->input('>>> Enter e-mail code:');
                $emailCode = $input->prompt();
                $client->setEmailCode($emailCode);
                $auth = $client->auth();
                break;

            case Auth::TWO_FACTOR:
                cli()->yellow()->out($auth['response']->get('message'));
                $input = cli()->input('>>> Enter 2FA code:');
                $twoFactorCode = $input->prompt();
                $client->setTwoFactorCode($twoFactorCode);
                $auth = $client->auth();

            case Auth::FAIL:
                print_r($auth);
                throw new Exception('Fail auth.');
                break;

            case Auth::BAD_RSA:
                throw new Exception('Fail RSA');
                break;

            case Auth::THROTTLE:
                throw new Exception($auth['response']->get('message'));
                break;

            case Auth::UNEXPECTED:
                print_r($auth);
                throw new Exception('Unexpected error 1');
                break;

            case Auth::BAD_CREDENTIALS:
                cli()->lightRed()->out($auth['response']->get('message'));
                $input = cli()->confirm('Want to enter new credentials?');

                if (!$input->confirmed()) {
                    cli()->lightRed()->out('Client has been stopped.');
                    exit;
                }

                $username = cli()->input('>>> Enter username:')->prompt();
                $password = cli()->password('>>> Enter password:')->prompt();

                $client->setUsername($username);
                $client->setPassword($password);
                $auth = $client->auth();
                break;

            default:
                throw new Exception("Unexpected error 2");
                break;
        }
    }
}

/** We are now logged in */
$balance = $client->market()->getBalance();
print_r($balance);

/** Output */
Array
(
    [raw] => 13,37 pуб.
    [clean] => 13.37
)
```

```
php steam.php
```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Total

7

Last Release

2019d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19103498?v=4)[chipslays](/maintainers/chipslays)[@chipslays](https://github.com/chipslays)

---

Top Contributors

[![chipslays](https://avatars.githubusercontent.com/u/19103498?v=4)](https://github.com/chipslays "chipslays (24 commits)")

---

Tags

clientlibrarysteamsteam-api

### Embed Badge

![Health badge](/badges/chipslays-steam-client/health.svg)

```
[![Health](https://phpackages.com/badges/chipslays-steam-client/health.svg)](https://phpackages.com/packages/chipslays-steam-client)
```

###  Alternatives

[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

9082.3k](/packages/n1ebieski-ksef-php-client)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M672](/packages/shopware-core)[soneso/stellar-php-sdk

Stellar PHP SDK for the Stellar Network

4157.3k4](/packages/soneso-stellar-php-sdk)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

28594.7k1](/packages/yoti-yoti-php-sdk)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

33182.7k](/packages/aspose-cloud-aspose-words-cloud)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
