PHPackages                             ziganshinalexey/yii2-steam-openid-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. ziganshinalexey/yii2-steam-openid-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

ziganshinalexey/yii2-steam-openid-auth
======================================

Подсистема управления авторизацией через Steam

1.0.0(7y ago)252mitPHPPHP ^7.2.0

Since Aug 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ziganshinalexey/yii2-steam-openid-auth)[ Packagist](https://packagist.org/packages/ziganshinalexey/yii2-steam-openid-auth)[ RSS](/packages/ziganshinalexey-yii2-steam-openid-auth/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Ziganshin Alexey / Yii2 Steam OpenId Auth
=========================================

[](#ziganshin-alexey--yii2-steam-openid-auth)

Пакет является расширенияем для `yiisoft/yii2-authclient` и добавляет готовые классы для работы с авторизацией со Steam через OpenId.

### Использование

[](#использование)

Controller:

```
class SiteController extends Controller
{
    use SteamApiComponentTrait;

    . . .

    /**
     * Метод определяет конфигурацию экшенов текущего контроллера.
     *
     * @return array
     */
    public function actions()
    {
        return [
            . . .
            'auth'  => [
                'class'           => SteamAuthAction::class,
                'successCallback' => [
                    $this,
                    'auth',
                ],
            ],
        ];
    }

    /**
     * Метод обработки успешной авторизации.
     *
     * @param SteamOpenId $openIdClient Клиент авторизации.
     *
     * @return void
     *
     * @throws InvalidConfigException Если стим гонит.
     */
    public function auth(SteamOpenId $openIdClient): void
    {
        // Your action handle. For example:
        if (! isset($openIdClient->getUserAttributes()['id'])) {
            throw new InvalidConfigException('Bad steam response.');
        }
        $openIdUrl   = explode('/', $openIdClient->getUserAttributes()['id']);
        $profileId   = array_pop($openIdUrl);
        $profileData = $this->getSteamApiComponent()->getProfile($profileId);
        var_dump($profileData);
        die;
    }

    . . .

}
```

View:

```
use yii\authclient\widgets\AuthChoice;

/* @var $this yii\web\View */

try {
    AuthChoice::widget([
        'baseAuthUrl' => ['site/auth'],
        'popupMode'   => false,
    ]);
} catch (Exception $e) {
    // Your Catch handle.
}
```

Так же пакет предоставляет функционал работы с апи Steam:

Пока реализован метод получения профиля пользователя.

Class:

```
$profileData = $this->getSteamApiComponent()->getProfile($profileId);
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

2865d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35246624?v=4)[Alexey Ziganshin](/maintainers/ziganshinalexey)[@ziganshinalexey](https://github.com/ziganshinalexey)

---

Top Contributors

[![ziganshinalexey](https://avatars.githubusercontent.com/u/35246624?v=4)](https://github.com/ziganshinalexey "ziganshinalexey (1 commits)")

### Embed Badge

![Health badge](/badges/ziganshinalexey-yii2-steam-openid-auth/health.svg)

```
[![Health](https://phpackages.com/badges/ziganshinalexey-yii2-steam-openid-auth/health.svg)](https://phpackages.com/packages/ziganshinalexey-yii2-steam-openid-auth)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[lowbase/yii2-user

Yii2 user module

131.5k2](/packages/lowbase-yii2-user)

PHPackages © 2026

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