PHPackages                             steroids/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. steroids/auth

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

steroids/auth
=============

2.0.0-beta.53(3y ago)0754MITPHPPHP &gt;=7.4

Since Mar 25Pushed 3y ago2 watchersCompare

[ Source](https://github.com/steroids/auth)[ Packagist](https://packagist.org/packages/steroids/auth)[ RSS](/packages/steroids-auth/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (7)Versions (54)Used By (0)

Основные сценарии авторизации
-----------------------------

[](#основные-сценарии-авторизации)

### 1. Email/phone/login + password \*(если isPasswordAvailable = true)

[](#1-emailphonelogin--password-если-ispasswordavailable--true)

1.1 Регистрация

```
RegistrationForm
    [login] (email/phone/login)
    [password]
    [...custom attrubites]

```

1.2 Регистрация -&gt; Подтверждение

```
ConfirmForm
    [email/phone]
    [code]

```

1.3 Вход

```
LoginForm
    [login] (email/phone/login)
    [password]

```

1.4 Вход -&gt; Подтверждение \*(если isPasswordAvailable = false)

```
ConfirmForm
    [email/phone]
    [code]

```

1.5 Восстановление

```
RecoveryPasswordForm
    [login] (email/phone)

```

1.6 Восстановление -&gt; Подтверждение

```
RecoveryPasswordConfirmForm
    [login] (email/phone)
    [code]

```

### 2. Вход/регистрация через социальные сети (oauth)

[](#2-входрегистрация-через-социальные-сети-oauth)

2.1 Вход/регистрация

```
ProviderlLoginForm
    [socialParams]

```

2.2 Ввод email (если социальная сеть не выдала его)

```
SocialEmailForm
    [uid]
    [email]

```

2.2 Ввод email/phone -&gt; Подтверждение

```
SocialConfirmForm
    [uid]
    [email]
    [code]

```

Использование 2FA
-----------------

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

1. В конфигурации необходимо объявить провайдеры, которые могут использоваться для 2fa, их сейчас может быть два - `notifier` и `google`.

```
    'modules' => [
        'auth' => [
            'twoFactorProviders' => [
                'notifier' => [],
            ],
        ],
    ],

```

2. В формах, где необходима 2FA, необходимо добавить TwoFactorRequireValidator

```
    [
        'amount',
        TwoFactorRequireValidator::class,
        'userId' => $this->user->primaryKey,
        'providerName' => 'notifier',
        'codeAttribute' => 'code',
    ]

```

Последний параметр `codeAttribute` не обязательный. Он необходим для случая, когда 2fa используется и обрабатывается на фронтенде прям в форме (с помощью onTwoFactor обработчика компонента `Form`) и затем форма отправляет те же данные, только с кодом подтверждения (`code`).

Если обработчик `onTwoFactor` не указывается на фронтенде, то код будет вводить в отдельной форме (например, в модальном окне) и отправляться на бекенд методом `POST /api/v1/auth/2fa//confirm`. Тогда `codeAttribute` указывать не нужно.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.2% 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 ~16 days

Recently: every ~63 days

Total

52

Last Release

1419d ago

PHP version history (2 changes)2.0.0-beta.2PHP &gt;=7.2.0

2.0.0-beta.5PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1cfc326ea000eaf99fed79bb85a9acb8396f1aabd368e8d09b517780916a331?d=identicon)[kozhindev](/maintainers/kozhindev)

![](https://www.gravatar.com/avatar/78d85527d1a7d0790f2cba7e878c250981b227a07390560db8d96f597da2d079?d=identicon)[perlexed](/maintainers/perlexed)

---

Top Contributors

[![Syomx1](https://avatars.githubusercontent.com/u/26322293?v=4)](https://github.com/Syomx1 "Syomx1 (50 commits)")[![SanFranTest](https://avatars.githubusercontent.com/u/43465516?v=4)](https://github.com/SanFranTest "SanFranTest (16 commits)")[![perlexed](https://avatars.githubusercontent.com/u/1930759?v=4)](https://github.com/perlexed "perlexed (14 commits)")[![destroyer-state](https://avatars.githubusercontent.com/u/51903619?v=4)](https://github.com/destroyer-state "destroyer-state (5 commits)")[![z0rnord](https://avatars.githubusercontent.com/u/36837555?v=4)](https://github.com/z0rnord "z0rnord (3 commits)")[![maelstrom-ci](https://avatars.githubusercontent.com/u/43719772?v=4)](https://github.com/maelstrom-ci "maelstrom-ci (1 commits)")

### Embed Badge

![Health badge](/badges/steroids-auth/health.svg)

```
[![Health](https://phpackages.com/badges/steroids-auth/health.svg)](https://phpackages.com/packages/steroids-auth)
```

###  Alternatives

[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

81158.7k4](/packages/stephenjude-filament-two-factor-authentication)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)[devdojo/auth

The auth package to make authentication in your laravel applications easy to use.

61979.4k2](/packages/devdojo-auth)[webbingbrasil/filament-2fa

A 2FA plugin for filament.

4740.7k](/packages/webbingbrasil-filament-2fa)

PHPackages © 2026

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